Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
my $dbh = C4::Context->dbh;
my $branch;
# Get which branchcode we need
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'};
}
$branch = C4::Context->userenv->{'branch'};
}
- elsif (C4::Context->preference('CircControl') eq 'PatronLibary'){
+ elsif (C4::Context->preference('CircControl') eq 'PatronLibrary'){
$branch = $borrower->{'branchcode'};
}
else {
$branch = $borrower->{'branchcode'};
}
else {
my $branch;
# Get which branchcode we need
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 {
$branch = $borrower->{'branchcode'};
}
else {