Bug, using branchcode instead of branch
authorChris Cormack <crc@liblime.com>
Tue, 22 Jan 2008 21:49:04 +0000 (15:49 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 24 Jan 2008 03:27:27 +0000 (21:27 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Circulation.pm

index 6140794..24a652f 100644 (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'};