Lines 128-134
if ( C4::Context->preference("AllowPurchaseSuggestionBranchChoice") ) {
Link Here
|
128 |
my ( $borr ) = GetMemberDetails( $borrowernumber ); |
128 |
my ( $borr ) = GetMemberDetails( $borrowernumber ); |
129 |
|
129 |
|
130 |
# pass the pickup branch along.... |
130 |
# pass the pickup branch along.... |
131 |
my $branch = $input->param('branch') || $borr->{'branchcode'} || C4::Context->userenv->{branch} || '' ; |
131 |
my $userbranch = ''; |
|
|
132 |
if (C4::Context->userenv && C4::Context->userenv->{'branch'}) { |
133 |
$userbranch = C4::Context->userenv->{'branch'}; |
134 |
} |
135 |
my $branch = $input->param('branch') || $borr->{'branchcode'} || $userbranch || '' ; |
132 |
|
136 |
|
133 |
# make branch selection options... |
137 |
# make branch selection options... |
134 |
my $branchloop = GetBranchesLoop($branch); |
138 |
my $branchloop = GetBranchesLoop($branch); |