From 067f40a287ff9a9b226ea837352212ca3a2f5c4a Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 21 Sep 2009 16:32:40 +0200 Subject: [PATCH] reserve/request.pl Fixing superlibrarian flag checking superlibrarian flag was checked without %2 on reserve/request.pl --- reserve/request.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reserve/request.pl b/reserve/request.pl index 8c86f776a2..58b42b3af9 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -337,7 +337,7 @@ foreach my $biblioitemnumber (@biblioitemnumbers) { if (! C4::Context->preference("canreservefromotherbranches")){ # cant reserve items so need to check if item homebranch and userenv branch match if not we cant reserve 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} ); } } -- 2.39.5