From 34a107925614417d50e6a6c02f538ba826d31c8b Mon Sep 17 00:00:00 2001 From: joshferraro Date: Tue, 22 Feb 2005 22:40:15 +0000 Subject: [PATCH] fix for bug 937 --- C4/Circulation/Circ2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index 56c5faf249..72facceead 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -1659,7 +1659,7 @@ sub renewbook { my $iteminformation = getiteminformation($env, $itemno,0); my $borrower = getpatroninformation($env,$bornum,0); my $loanlength = getLoanLength($borrower->{'categorycode'},$iteminformation->{'itemtype'},$borrower->{'branchcode'}); - $datedue = UnixDate(DateCalc($iteminformation->{date_due},"$loanlength days"),"%Y-%m-%d"); + $datedue = UnixDate(DateCalc("today","$loanlength days"),"%Y-%m-%d"); } # Find the issues record for this book -- 2.39.5