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 <jcamins@cpbibliography.com>
This commit is contained in:
Jared Camins-Esakov 2013-05-06 08:35:00 -04:00
parent 8016d2bd0d
commit 5c9522382c

View file

@ -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;
}