circ: fix use of CircControl; staff user branch
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 27 Feb 2008 22:33:38 +0000 (11:33 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 28 Feb 2008 13:59:04 +0000 (07:59 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Circulation.pm

index 0b6892e..a403a9e 100644 (file)
@@ -387,10 +387,10 @@ sub TooMany {
     my $dbh             = C4::Context->dbh;
        my $branch;
        # Get which branchcode we need
-       if (C4::Context->preference('CircControl') eq 'PickupLibary'){
+       if (C4::Context->preference('CircControl') eq 'PickupLibrary'){
                $branch = C4::Context->userenv->{'branch'}; 
        }
-       elsif (C4::Context->preference('CircControl') eq 'PatronLibary'){
+       elsif (C4::Context->preference('CircControl') eq 'PatronLibrary'){
         $branch = $borrower->{'branchcode'}; 
        }
        else {
@@ -859,10 +859,10 @@ sub AddIssue {
                
                my $branch;
                # Get which branchcode we need
-               if (C4::Context->preference('CircControl') eq 'PickupLibary'){
-                       $branch = C4::Context->userenv->{'branchcode'}; 
+               if (C4::Context->preference('CircControl') eq 'PickupLibrary'){
+                       $branch = C4::Context->userenv->{'branch'}; 
                }
-               elsif (C4::Context->preference('CircControl') eq 'PatronLibary'){
+               elsif (C4::Context->preference('CircControl') eq 'PatronLibrary'){
                        $branch = $borrower->{'branchcode'}; 
                }
                else {