From a3517c1aa3d7f4c87dd74e8f64b3fb1f5643960e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 19 Nov 2024 17:10:05 +0000 Subject: [PATCH] Bug 37334: Return all non zero notforloan statuses --- 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.39.2