From 6bd59eeef78b751ed9896b5affa3fb29a6285490 Mon Sep 17 00:00:00 2001 From: rangi Date: Sun, 18 Feb 2001 22:13:26 +0000 Subject: [PATCH] Little fix to the returnbook routine so the correct branchcode is passed to the updatestats routine --- C4/Circulation/Circ2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index 3486880ad6..1bc03b87ce 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -419,7 +419,7 @@ sub returnbook { my $branchname=$branches->{$resrec->{'branchcode'}}->{'branchname'}; push (@$messages, "RESERVED for collection by $borrower->{'firstname'} $borrower->{'surname'} ($borrower->{'cardnumber'}) at $branchname"); } - UpdateStats($env,'branch','return','0','',$iteminformation->{'itemnumber'}); + UpdateStats($env,$env->{'branchcode'},'return','0','',$iteminformation->{'itemnumber'}); } $dbh->disconnect; return ($iteminformation, $borrower, $messages, $overduecharge); -- 2.39.5