diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 1c9f73b3a9..52deec61b3 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -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;