Bug 17736: Fix typo ->new vs ->next
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 3 Feb 2017 09:45:13 +0000 (10:45 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Mar 2017 12:04:17 +0000 (12:04 +0000)
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>
opac/opac-detail.pl

index 1c9f73b..52deec6 100755 (executable)
@@ -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;