[Koha-bugs] [Bug 29807] New: Branches template doesn't handle empty lists correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 6 12:49:14 CET 2022


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

            Bug ID: 29807
           Summary: Branches template doesn't handle empty lists correctly
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org

The current code, given an 'item' or a 'biblio' param, makes 'pickup_locations'
set @pickup_locations an empty list. After that, there's a check for emptiness,
in which case it populates the @libraries variable with ALL PICKUP LOCATIONS,
which is totally wrong!

This is a bug introduced by bug 24350.

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


More information about the Koha-bugs mailing list