From ee8894eada5a8ab8baf933ee58f3f8f96b7c2a5d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Jun 2021 15:39:55 +0200 Subject: [PATCH] Bug 3142: Exclude damaged items Content-Type: text/plain; charset=utf-8 Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy --- Koha/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Items.pm b/Koha/Items.pm index 2855192f95..0ec3133d8a 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -55,6 +55,7 @@ sub filter_by_for_hold { withdrawn => 0, notforloan => { '<=' => 0 } , # items with negative or zero notforloan value are holdable + ( C4::Context->preference('AllowHoldsOnDamagedItems') ? ( damaged => 0 ) : () ), } ); } -- 2.20.1