From c72b5d80c9f33018e46e6e4464209c755ed156d7 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 Signed-off-by: Fridolin Somers --- 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.39.5