From 5ebb062a38f1ab286af17e5b984688175cdb1812 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 Content-Type: text/plain; charset=utf-8 while ->new is terrible, let's call that a typo... Signed-off-by: Marcel de Rooy opac-detail works again ! --- 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.1.4