From b1ccebae91a8fbc0a9979c05fa2449ccc75a6d90 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

---
 Koha/Items.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Koha/Items.pm b/Koha/Items.pm
index 3e69b98167..c7288e2414 100644
--- a/Koha/Items.pm
+++ b/Koha/Items.pm
@@ -304,7 +304,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.2