[Koha-bugs] [Bug 27065] New: Automatic renewals performed when no reservable items are available but items that can be issued are available.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 20 12:58:32 CET 2020


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

            Bug ID: 27065
           Summary: Automatic renewals performed when no reservable items
                    are available but items that can be issued are
                    available.
 Change sponsored?: ---
           Product: Koha
           Version: 20.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: andreas.jonsson at kreablo.se
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

The return value of CanItemBeReserved is incorrectly used in a condition in
CanBookBeRenewed:


                    next unless CanItemBeReserved($borrowernumber,$itemnumber);

CanItemBeReserved returns a hash reference wich always evaluates to true.  The
condition should instead be:

                    next unless
CanItemBeReserved($borrowernumber,$itemnumber)->{status} eq 'OK';

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


More information about the Koha-bugs mailing list