From 47e3d8667bd1ce615dd4111436d40c759d3a4b05 Mon Sep 17 00:00:00 2001 From: joshferraro Date: Tue, 3 May 2005 19:39:20 +0000 Subject: [PATCH] Fixes bug 970: renewing book from issues screen. --- C4/Circulation/Circ2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index d0adf9cf10..34e2a6d620 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -743,7 +743,7 @@ sub canbookbeissued { if ($currentborrower eq $borrower->{'borrowernumber'}) { # Already issued to current borrower. Ask whether the loan should # be renewed. - my ($renewstatus) = renewstatus($env,$dbh,$borrower->{'borrowernumber'}, $iteminformation->{'itemnumber'}); + my ($renewstatus) = renewstatus($env, $borrower->{'borrowernumber'}, $iteminformation->{'itemnumber'}); if ($renewstatus == 0) { # no more renewals allowed $issuingimpossible{NO_MORE_RENEWALS} = 1; } else { @@ -816,7 +816,7 @@ sub issuebook { $iteminformation->{'charge'} = $charge; } &UpdateStats($env,$env->{'branchcode'},'renew',$charge,'',$iteminformation->{'itemnumber'},$iteminformation->{'itemtype'},$borrower->{'borrowernumber'}); - renewbook($env,$dbh, $borrower->{'borrowernumber'}, $iteminformation->{'itemnumber'}); + renewbook($env, $borrower->{'borrowernumber'}, $iteminformation->{'itemnumber'}); } else { # # NOT a renewal -- 2.39.5