From 456e179f1b148f7dd3f67638c8d067e9f3b417be Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 28 Feb 2008 11:33:38 +1300 Subject: [PATCH] circ: fix use of CircControl; staff user branch Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Circulation.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 0b6892e786..a403a9edbf 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -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 { -- 2.39.5