From e09fb4f563fded69618796067c24a24565a4e079 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 10 May 2021 14:07:14 +0200 Subject: [PATCH] Bug 28286: Replace < 1 with <= 0 It's the same but read more natural Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit 68266cc1b4e80589c728b315901fcfac2f939ac8) Signed-off-by: Fridolin Somers --- Koha/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index b90105de3d..1647983553 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -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 -- 2.39.5