From 24216136f4cdfe308e165af7450d3471cd8bc98e 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 Signed-off-by: Owen Leonard Passed-QA-by: Marcel de Rooy Signed-off-by: Jared Camins-Esakov --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3a63fcd856..f95cb8301b 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 '')) { -- 2.39.5