From 12b5aa1b6ff9c5b1b8e00b40cd54d7128782bcc4 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 6 May 2013 08:35:00 -0400 Subject: [PATCH] Bug 10166: Increment holdable counter The $anyholdable variable was set to 0 or 1. However, as it is set in a loop, and future changes to the opac-reserve.pl script may require knowing how many items the patron is going to place a hold on, it makes more sense to treat $anyholdable as a counter. This follow up turns it into one. Signed-off-by: Jared Camins-Esakov (cherry picked from commit 5c9522382c83f078692051fa572c56b21b54fa77) Signed-off-by: Jared Camins-Esakov --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index c6e05f5310..d0da2c5de6 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -538,7 +538,7 @@ foreach my $biblioNum (@biblionumbers) { $biblioLoopIter{already_patron_possession} = 1; } - if( $biblioLoopIter{holdable} ){ $anyholdable = 1; } + if( $biblioLoopIter{holdable} ){ $anyholdable++; } push @$biblioLoop, \%biblioLoopIter; } -- 2.39.5