[Koha-bugs] [Bug 36362] New: Only call Koha::Libraries->search() if necessary in Item::pickup_locations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 19 18:32:38 CET 2024


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

            Bug ID: 36362
           Summary: Only call Koha::Libraries->search() if necessary in
                    Item::pickup_locations
 Change sponsored?: ---
           Product: Koha
           Version: master
          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: glasklas at gmail.com
        QA Contact: testopia at bugs.koha-community.org

In Item::pickup_locations; instead of setting the default value of
$pickup_libraries to Koha::Libraries->search(), that call should only be made
if that variable is not set to something else. A rather small and probably that
not significant fix in terms of performance, but also an easy thing to fix.

-- 
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