From ca23705472094f14f88379004800478ccfb3ca62 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 --- 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.11.0