From 56daa682f4da07368539f993c255a512acb0af2c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 19 Nov 2024 17:10:05 +0000 Subject: [PATCH 06/13] Bug 37334: Return all non zero notforloan statuses Signed-off-by: Emmi Takkinen --- Koha/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 47694a6451..3e69b98167 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -599,7 +599,7 @@ sub search { } if ( $status eq 'not_for_loan' ) { my @item_types_notforloan = Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype'); - $self = $self->search( [ { notforloan => { '>' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] ); + $self = $self->search( [ { notforloan => { '!=' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] ); } if ( $status eq 'on_hold' ) { $self = $self->filter_by_has_holds; -- 2.34.1