From 00332e96d83a56063ea92319edc70f9998f75c35 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... --- 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 1c9f73b..52deec6 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.9.3