Bug 28286: Replace < 1 with <= 0
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 12:07:14 +0000 (14:07 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 13:46:55 +0000 (15:46 +0200)
It's the same but read more natural

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Items.pm

index b90105d..1647983 100644 (file)
@@ -47,7 +47,7 @@ Return the items of the set that are holdable
 
 sub filter_by_for_hold {
     my ($self) = @_;
-    return $self->search( { notforloan => { '<' => 1 } } ); # items with negative or zero notforloan value are holdable
+    return $self->search( { notforloan => { '<=' => 0 } } ); # items with negative or zero notforloan value are holdable
 }
 
 =head3 filter_by_visible_in_opac