From a80a0a7edc2c3e24bef9d5ce5723cad44518d7d8 Mon Sep 17 00:00:00 2001 From: btoumi Date: Fri, 18 May 2007 12:30:27 +0000 Subject: [PATCH] bug fix: add call of two function from Date::calc and correction of wrong variable name --- C4/Circulation.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 7fb11e79b9..a4e22a9629 100755 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -35,6 +35,8 @@ use Date::Calc qw( Add_Delta_YM Add_Delta_DHMS Date_to_Days + Day_of_Week + Add_Delta_Days ); use POSIX qw(strftime); use C4::Branch; # GetBranches @@ -991,7 +993,7 @@ if ($borrower and $barcode and $barcodecheck ne '0'){ if ($date) { $dateduef = $date; } - $dateduef=CheckValidDatedue($dateduef,$iteminformation->{'itemnumber'},$env->{'branchcode'}); + $dateduef=CheckValidDatedue($dateduef,$item->{'itemnumber'},C4::Context->userenv->{'branch'}); # if ReturnBeforeExpiry ON the datedue can't be after borrower expirydate if ( C4::Context->preference('ReturnBeforeExpiry') && $dateduef gt $borrower->{dateexpiry} ) -- 2.39.2