From 10c61f68948ebc8e7bcddfcb3978138732f8af09 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 31 Oct 2012 16:45:14 +0100 Subject: [PATCH] Bug 8996: In result page items with negative notforloan are available --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3a63fcd..f95cb83 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1799,7 +1799,7 @@ sub searchResults { else { # item is on order - if ( $item->{notforloan} == -1 ) { + if ( $item->{notforloan} < 0 ) { $ordered_count++; } @@ -1837,7 +1837,7 @@ sub searchResults { if ( $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} - || $item->{notforloan} > 0 + || $item->{notforloan} || $reservestatus eq 'Waiting' || ($transfertwhen ne '')) { -- 1.7.9.5