Bug 17736: Fix typo ->new vs ->next

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>
This commit is contained in:
Jonathan Druart 2017-02-03 10:45:13 +01:00 committed by Kyle M Hall
parent 8639a64bdb
commit e83d92a713

View file

@ -595,7 +595,7 @@ if ( $show_holds_count || $show_priority) {
my $biblio = Koha::Biblios->find( $biblionumber ); my $biblio = Koha::Biblios->find( $biblionumber );
my $holds = $biblio->holds; my $holds = $biblio->holds;
$template->param( holds_count => $holds->count ); $template->param( holds_count => $holds->count );
while ( my $hold = $holds->new ) { while ( my $hold = $holds->next ) {
$item_reserves{ $hold->itemnumber }++ if $hold->itemnumber; $item_reserves{ $hold->itemnumber }++ if $hold->itemnumber;
if ($show_priority && $hold->borrowernumber == $borrowernumber) { if ($show_priority && $hold->borrowernumber == $borrowernumber) {
$has_hold = 1; $has_hold = 1;