From 9cc0e57996b4ecd0220ad20f29eaba749e3d77ad 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 Signed-off-by: Chris Cormack --- C4/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index d3017c518d..851a2b478d 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1678,7 +1678,7 @@ sub searchResults { else { # item is on order - if ( $item->{notforloan} == -1 ) { + if ( $item->{notforloan} < 0 ) { $ordered_count++; } @@ -1716,7 +1716,7 @@ sub searchResults { if ( $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} - || $item->{notforloan} > 0 + || $item->{notforloan} || $reservestatus eq 'Waiting' || ($transfertwhen ne '')) { -- 2.39.5