[Koha-bugs] [Bug 24016] New: manager_id in Koha::Patron::Message->store should not depend on userenv alone

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 12 13:15:30 CET 2019


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 at lists.koha-community.org
          Reporter: lari.taskula at hypernova.fi
        QA Contact: testopia at 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.


More information about the Koha-bugs mailing list