Bug 23413: Remove wrong return
authorNick Clemens <nick@bywatersolutions.com>
Thu, 24 Oct 2019 15:40:47 +0000 (15:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 24 Oct 2019 15:58:25 +0000 (16:58 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/Item.pm

index b5b3ce0..a9cca3f 100644 (file)
@@ -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 );
 }