From 37b7d0a4ed9536108710b5df4d46ebfb8b47e53b Mon Sep 17 00:00:00 2001 From: Andrew Nugged Date: Wed, 24 Feb 2021 11:45:07 +0200 Subject: [PATCH] Bug 27718: (follow-up) add missing return MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Missing return doesn't allowed for "wantarray" state to DBIXc so sub returned scalar in any context. Also blank line to match with coding style removed. Signed-off-by: Andrew Nugged Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- Koha/Holds.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Koha/Holds.pm b/Koha/Holds.pm index 61351a1efd..e63eadba70 100644 --- a/Koha/Holds.pm +++ b/Koha/Holds.pm @@ -140,7 +140,7 @@ sub get_items_that_can_fill { } )->get_column('itemtype'); - my $items = Koha::Items->search( + return Koha::Items->search( { biblionumber => { in => \@biblionumbers }, itemlost => 0, @@ -151,7 +151,6 @@ sub get_items_that_can_fill { itype => { -not_in => \@hold_not_allowed_itypes }, } ); - } =head3 type -- 2.39.5