From a0ca85b9174ed482e1392cbbac457404218d1dd4 Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 30 May 2007 09:12:36 +0000 Subject: [PATCH] BugFixing CanBookBeRenewed was too strict. If a book could be renewed 1 time, it wouldnot do. --- C4/Circulation.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 64c86c16b2..dcedd0781e 100755 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1598,7 +1598,7 @@ sub CanBookBeRenewed { if ( my $data2 = $sth2->fetchrow_hashref ) { $renews = $data2->{'renewalsallowed'}; } - if ( $renews && $renews > $data1->{'renewals'} ) { + if ( $renews && $renews >= $data1->{'renewals'} ) { $renewokay = 1; } $sth2->finish; @@ -1606,10 +1606,6 @@ sub CanBookBeRenewed { if ($resfound) { $renewokay = 0; } - ( $resfound, $resrec ) = C4::Reserves::CheckReserves($itemnumber); - if ($resfound) { - $renewokay = 0; - } } $sth1->finish; -- 2.39.5