[Koha-bugs] [Bug 23586] New: Issuing rules failing in 19.05

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 11 10:47:18 CEST 2019


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

            Bug ID: 23586
           Summary: Issuing rules failing in 19.05
 Change sponsored?: ---
           Product: Koha
           Version: 19.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          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

A Koha::Library object rather than a branchcode is passed to a database query
causing the rules to never match.

It looks like the bug was introduced in commit
7d71d9507202ff667776bf9cb6de0bf2603ad0dd of bug 20912:

@@ -709,7 +709,7 @@ sub CanBookBeIssued {
     unless ( $duedate ) {
         my $issuedate = $now->clone();

-        my $branch = _GetCircControlBranch($item_unblessed,
$patron_unblessed);
+        my $branch = $circ_library;
         $duedate = CalcDateDue( $issuedate, $effective_itemtype, $branch,
$patron_unblessed );

         # Offline circ calls AddIssue directly, doesn't run through here

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