Bug, using branchcode instead of branch

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2008-01-22 15:49:04 -06:00 committed by Joshua Ferraro
parent 3dda0fa639
commit 86716641ca

View file

@ -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'};