From 7f8e480dfaa4af6812e6c9c6150fb50985f83f72 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 Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 8beb878e5b1276cf6924364d9a6e7caccbad065c) Signed-off-by: Lucas Gass --- 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 40d7318067..e2f7d0e15a 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.39.5