From facd6cc04140fb7b3c59277b46096e2ec47f844c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 24 Oct 2019 15:40:47 +0000 Subject: [PATCH] Bug 23413: Remove wrong return Signed-off-by: Martin Renvoize --- Koha/Item.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index b5b3ce06f4..a9cca3f727 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -140,7 +140,6 @@ Return holds attached to an item, optionally accept a hashref of params to pass sub holds { my ( $self,$params ) = @_; my $holds_rs = $self->_result->reserves->search($params); - return unless $holds_rs->count; return Koha::Holds->_new_from_dbic( $holds_rs ); } -- 2.39.5