From 743caa04fa1d7ca0eb9d5c860613d64ecde852df Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Sun, 13 Jan 2008 01:39:11 -0600 Subject: [PATCH] A book can be renewed if renewalsallowed > to renewals done, not >= Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index ef041a7f27..72bd385f9d 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1594,7 +1594,7 @@ sub CanBookBeRenewed { if ( my $data2 = $sth2->fetchrow_hashref ) { $renews = $data2->{'renewalsallowed'}; } - if ( $renews && $renews >= $data1->{'renewals'} ) { + if ( $renews && $renews > $data1->{'renewals'} ) { $renewokay = 1; } else { -- 2.39.5