From 6c2fb6e7c25624ebd2757d6e5ab6c7b312c177e6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 19 Sep 2019 14:39:44 +0100 Subject: [PATCH] Bug 23586: Correct call to CalcDateDue This patch corrects the call to CalcDateDue in C4::Circulation::CanBookBeIssued correcting a regression caused by bug 20912. --- C4/Circulation.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index e346e2dfd6..fd0568ca43 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -706,8 +706,7 @@ sub CanBookBeIssued { unless ( $duedate ) { my $issuedate = $now->clone(); - my $branch = $circ_library; - $duedate = CalcDateDue( $issuedate, $effective_itemtype, $branch, $patron_unblessed ); + $duedate = CalcDateDue( $issuedate, $effective_itemtype, $circ_library->branchcode, $patron_unblessed ); # Offline circ calls AddIssue directly, doesn't run through here # So issuingimpossible should be ok. -- 2.20.1