From a8d2b44a4cdb40ef988a998a272753f648987e4e Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Thu, 10 Jul 2008 16:20:39 -0400 Subject: [PATCH] Allow holds to be placed on items with notforloan set as a negative value. See http://wiki.koha.org/doku.php?id=en:development:kohastatuses Signed-off-by: Joshua Ferraro --- C4/Reserves.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 75c6614112..cc20485870 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -634,9 +634,9 @@ sub CheckReserves { $sth->execute; my ( $biblio, $bibitem, $notforloan_per_itemtype, $notforloan_per_item ) = $sth->fetchrow_array; $sth->finish; - # if item is not for loan it cannot be reserved either..... - return ( 0, 0 ) if $notforloan_per_item or $notforloan_per_itemtype; + # execption to notforloan is where items.notforloan < 0 : This indicates the item is holdable. + return ( 0, 0 ) if ( $notforloan_per_item > 0 ) or $notforloan_per_itemtype; # get the reserves... # Find this item in the reserves -- 2.39.5