From 88c7b34301accfdd232277337528a2fae4e1ccbf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 15 Feb 2022 08:45:42 +0100 Subject: [PATCH] Bug 30104: (bug 29844 follow-up): Fix holds to pull There was an error when circ/pendingreserves.pl was hit: The method Koha::Items->biblionumber is not covered by tests! Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi --- circ/pendingreserves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 8ca7245b3c..12e7c193c0 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -193,7 +193,7 @@ my $holds = Koha::Holds->search( my @biblionumbers = $holds->get_column('biblionumber'); my $all_items; -foreach my $item ( $holds->get_items_that_can_fill ) { +foreach my $item ( $holds->get_items_that_can_fill->as_list ) { push @{$all_items->{$item->biblionumber}}, $item; } -- 2.35.1