From d79f050ce3a8a196c52a139051c6ebc4db0d722c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 23 Jun 2008 15:33:32 -0500 Subject: [PATCH] bug 2252: item-level hold not waiting until priority = 0 When returning an item that has an item-level hold on it, CheckReserves() will not consider it waiting unless the priority has been set to 0 (i.e., the item has specifically been marked as filling the request.) Signed-off-by: Joshua Ferraro --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index f011b9e622..75c6614112 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -653,7 +653,7 @@ sub CheckReserves { foreach my $res (@reserves) { # FIXME - $item might be undefined or empty: the caller # might be searching by barcode. - if ( $res->{'itemnumber'} == $item ) { + if ( $res->{'itemnumber'} == $item && $res->{'priority'} == 0) { # Found it return ( "Waiting", $res ); } -- 2.39.2