From 86716641ca7030fd29723243a4351d5a54027012 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 22 Jan 2008 15:49:04 -0600 Subject: [PATCH] Bug, using branchcode instead of branch 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 6140794651..24a652f00c 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -380,7 +380,7 @@ sub TooMany { my $branch; # Get which branchcode we need if (C4::Context->preference('CircControl') eq 'PickupLibary'){ - $branch = C4::Context->userenv->{'branchcode'}; + $branch = C4::Context->userenv->{'branch'}; } elsif (C4::Context->preference('CircControl') eq 'PatronLibary'){ $branch = $borrower->{'branchcode'}; -- 2.39.5