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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to