TransformHTMLToXML bug default_ind_to_space
[koha.git] / reserve / request.pl
index 8c86f77..58b42b3 100755 (executable)
@@ -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} );
         } 
         }