Auth_with_ldap : module and test final touches.
[koha_fer] / C4 / Circulation.pm
index f96c12d..9609979 100644 (file)
@@ -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 {