From 54e6cf71e38f8f08ff14f6de8d16c8ffac53a0f0 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 2 Dec 2007 17:10:29 -0600 Subject: [PATCH] Fix for renewing 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 f96c12db97..960997919c 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1671,7 +1671,7 @@ sub AddRenewal { 'Rent', $charge, $itemnumber ); $sth->finish; } - UpdateStats( C4::Context->userenv->{'branchcode'}, 'renew', $charge, '', $itemnumber ); + UpdateStats( $branch, 'renew', $charge, '', $itemnumber ); } sub GetRenewCount { -- 2.39.5