From 6c75d21f236637598fb14cb59e87dc5e7da748aa Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 16 Dec 2009 12:21:47 +1300 Subject: [PATCH] Bug 3785 - Fixing a bug that was stopping holds if no maximum number was set Signed-off-by: Galen Charlton --- C4/ILSDI/Utility.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/ILSDI/Utility.pm b/C4/ILSDI/Utility.pm index 31f7fc1b47..708ba21493 100644 --- a/C4/ILSDI/Utility.pm +++ b/C4/ILSDI/Utility.pm @@ -98,7 +98,7 @@ sub CanBookBeReserved { $out = undef; } my @reserves = GetReservesFromBorrowernumber( $borrower->{'borrowernumber'} ); - if ( scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) { + if ( $MAXIMUM_NUMBER_OF_RESERVES && scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) { $out = undef; } foreach my $res (@reserves) { -- 2.39.5