From 57edc52ddb845926938e6839a95caa808eee919d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 May 2020 09:33:10 +0200 Subject: [PATCH] Bug 25266: Fix error when no later order If no late order we got: "Argument passed to the 'IN' operator can not be undefined" It highlights a context error Signed-off-by: Katrin Fischer Signed-off-by: Alex Arnaud Signed-off-by: Jonathan Druart (cherry picked from commit 7531f66a921089b8b4bae60cf607820b4c483af0) Signed-off-by: Lucas Gass --- acqui/lateorders.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/lateorders.pl b/acqui/lateorders.pl index 6521d1d7a6..65d47033e5 100755 --- a/acqui/lateorders.pl +++ b/acqui/lateorders.pl @@ -151,7 +151,7 @@ my @lateorders = Koha::Acquisition::Orders->filter_by_lates( my $booksellers = Koha::Acquisition::Booksellers->search( { id => { - -in => map { $_->basket->booksellerid } @lateorders + -in => [ map { $_->basket->booksellerid } @lateorders ] }, } ); -- 2.39.5