reserve/request.pl Fixing superlibrarian flag checking
superlibrarian flag was checked without %2 on reserve/request.pl
This commit is contained in:
parent
60549d6584
commit
067f40a287
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ foreach my $biblioitemnumber (@biblioitemnumbers) {
|
||||||
if (! C4::Context->preference("canreservefromotherbranches")){
|
if (! C4::Context->preference("canreservefromotherbranches")){
|
||||||
# cant reserve items so need to check if item homebranch and userenv branch match if not we cant reserve
|
# cant reserve items so need to check if item homebranch and userenv branch match if not we cant reserve
|
||||||
my $userenv = C4::Context->userenv;
|
my $userenv = C4::Context->userenv;
|
||||||
if ( ($userenv) && ( $userenv->{flags} != 1 ) ) {
|
if ( ($userenv) && ( $userenv->{flags} %2 != 1 ) ) {
|
||||||
$item->{cantreserve} = 1 if ( $item->{homebranch} ne $userenv->{branch} );
|
$item->{cantreserve} = 1 if ( $item->{homebranch} ne $userenv->{branch} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue