From 57a06afcd7e04e265e04d95e37cb9d9fba5cb938 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 Signed-off-by: Emmi Takkinen Signed-off-by: Jonathan Druart --- Koha/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 4fb5a20da4a..a1279fb81e7 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -612,7 +612,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