Bug 17736: Fix typo ->new vs ->next
while ->new is terrible, let's call that a typo... Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> opac-detail works again ! Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
8639a64bdb
commit
e83d92a713
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ if ( $show_holds_count || $show_priority) {
|
|||
my $biblio = Koha::Biblios->find( $biblionumber );
|
||||
my $holds = $biblio->holds;
|
||||
$template->param( holds_count => $holds->count );
|
||||
while ( my $hold = $holds->new ) {
|
||||
while ( my $hold = $holds->next ) {
|
||||
$item_reserves{ $hold->itemnumber }++ if $hold->itemnumber;
|
||||
if ($show_priority && $hold->borrowernumber == $borrowernumber) {
|
||||
$has_hold = 1;
|
||||
|
|
Loading…
Reference in a new issue