https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24016

--- Comment #3 from Lari Taskula <lari.task...@hypernova.fi> ---
Created attachment 95300
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95300&action=edit
Bug 24016: manager_id in Koha::Patron::Message->store should not depend on
userenv alone

Koha::Patron::Message->store has this

    my $userenv = C4::Context->userenv;
    $self->manager_id( $userenv ? $userenv->{number} : undef);

This breaks in REST API when userenv is not set.

Let API user pass manager_id without relying on C4::Context->userenv.

To test:
1. prove t/db_dependent/Koha/Patron/Messages.t
2. Observe success

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to