BugFixing CanBookBeRenewed was too strict. If a book could be renewed 1 time, it...
authortipaul <tipaul>
Wed, 30 May 2007 09:12:36 +0000 (09:12 +0000)
committertipaul <tipaul>
Wed, 30 May 2007 09:12:36 +0000 (09:12 +0000)
C4/Circulation.pm

index 64c86c1..dcedd07 100755 (executable)
@@ -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;