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:
parent
8016d2bd0d
commit
5c9522382c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue