From 4856f083be032473447543b8f6924da115661b9f 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 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 --- 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.30.1