https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24016 Bug ID: 24016 Summary: manager_id in Koha::Patron::Message->store should not depend on userenv alone Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: lari.taskula@hypernova.fi QA Contact: testopia@bugs.koha-community.org 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. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.