From 3df6936862afa88eec26a3b09486180b5240a143 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 1 Jun 2022 08:16:00 -0300 Subject: [PATCH] Bug 30876: Fix wrong call to ->search in list context The code is clearly incorrect as ->search no longer returns a list when called in list context. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- recalls/recalls_to_pull.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recalls/recalls_to_pull.pl b/recalls/recalls_to_pull.pl index 40d73180674..e2f7d0e15ab 100755 --- a/recalls/recalls_to_pull.pl +++ b/recalls/recalls_to_pull.pl @@ -71,7 +71,7 @@ if ( $op eq 'list' ) { my @locations; my @libraries; - my @items = Koha::Items->search({ biblio_id => $recall->biblio_id }); + my @items = Koha::Items->search({ biblio_id => $recall->biblio_id })->as_list; foreach my $item ( @items ) { if ( $item->can_be_waiting_recall and !$item->checkout ) { # if item can be pulled to fulfill recall, collect item data -- 2.25.1