From e67511f742a31a04b9f1728c47d9f5fb5a3e21d8 Mon Sep 17 00:00:00 2001
From: Lucas Gass <lucas@bywatersolutions.com>
Date: Tue, 19 Nov 2024 18:08:52 +0000
Subject: [PATCH] Bug 37334: filter_by_available should not return notforloan
 statues other than 0

Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
---
 Koha/Items.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Koha/Items.pm b/Koha/Items.pm
index f4d23f9b334..21b2a95422d 100644
--- a/Koha/Items.pm
+++ b/Koha/Items.pm
@@ -307,7 +307,7 @@ sub filter_by_available {
             itemlost        => 0,
             withdrawn       => 0,
             damaged         => 0,
-            notforloan      => { '<=' => 0 },
+            notforloan      => 0,
             restricted      => [ { '!=' => 0 }, undef ],
             'me.itype'      => { -not_in => \@item_types_notforloan },
         }
-- 
2.39.5