projects
/
koha_fer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 9611: Change the password hashing algorithm from MD5 to Bcrypt
[koha_fer]
/
opac
/
opac-suggestions.pl
diff --git
a/opac/opac-suggestions.pl
b/opac/opac-suggestions.pl
index
eddcd26
..
32b5c3d
100755
(executable)
--- a/
opac/opac-suggestions.pl
+++ b/
opac/opac-suggestions.pl
@@
-128,11
+128,15
@@
if ( C4::Context->preference("AllowPurchaseSuggestionBranchChoice") ) {
my ( $borr ) = GetMemberDetails( $borrowernumber );
# pass the pickup branch along....
my ( $borr ) = GetMemberDetails( $borrowernumber );
# pass the pickup branch along....
- my $branch = $input->param('branch') || $borr->{'branchcode'} || C4::Context->userenv->{branch} || '' ;
+ my $userbranch = '';
+ if (C4::Context->userenv && C4::Context->userenv->{'branch'}) {
+ $userbranch = C4::Context->userenv->{'branch'};
+ }
+ my $branch = $input->param('branch') || $borr->{'branchcode'} || $userbranch || '' ;
# make branch selection options...
# make branch selection options...
- my $
CGI
branchloop = GetBranchesLoop($branch);
- $template->param( branch
_loop => $CGI
branchloop );
+ my $branchloop = GetBranchesLoop($branch);
+ $template->param( branch
loop => $
branchloop );
}
$template->param(
}
$template->param(