From 6eb786648fc01715841b73044ec1cf64c3aa147c Mon Sep 17 00:00:00 2001 From: Aleisha Date: Mon, 3 Aug 2015 02:23:29 +0000 Subject: [PATCH] Bug 14634: Warns when placing hold on record with no items To test: 1) Create a new record in Cataloguing 2) When done, instead of adding an item to the record, click on the Holds tab in the left nav 3) Notice warns 4) Apply patch and refresh page 5) Click on Holds tab again 6) Notice warns are gone and page still works Signed-off-by: Marcel de Rooy Warns disappear; note that the display of the error message is still ugly. Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi Signed-off-by: Liz Rea --- reserve/request.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/reserve/request.pl b/reserve/request.pl index baec55e95f..b14afafe28 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -192,6 +192,7 @@ foreach my $biblionumber (@biblionumbers) { my $dat = GetBiblioData($biblionumber); my $canReserve = CanBookBeReserved( $borrowerinfo->{borrowernumber}, $biblionumber ); + $canReserve //= ''; if ( $canReserve eq 'OK' ) { #All is OK and we can continue -- 2.39.5