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 <katrin.fischer.83@web.de>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-05-25 09:33:10 +02:00
parent 3ce4024fcb
commit 7531f66a92

View file

@ -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 ]
},
}
);