[Koha-bugs] [Bug 25421] Make Koha::Item and Koha::Biblio ->pickup_locations return an arrayref

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 12 15:30:35 CEST 2020


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |additional_work_needed

--- Comment #11 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
This was wrong:

-    @libraries = Koha::Libraries->pickup_locations() unless @libraries;
+    @libraries = Koha::Libraries->search( { pickup_location => 1 },
+        { order_by => ['branchname'] } )->as_list
+      unless @libraries;

->pickup_locations does much more than search for the pickup_location flag.

Tests from t/db_dependent/Template/Plugin/Branches.t are failing massively.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list