From e83d92a713e2deea3081a4ff8caa0d63ea66d8c8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 3 Feb 2017 10:45:13 +0100 Subject: [PATCH] Bug 17736: Fix typo ->new vs ->next while ->new is terrible, let's call that a typo... Signed-off-by: Marcel de Rooy opac-detail works again ! Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall --- opac/opac-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5