From a92f82dbfe1139de499fc6b6599c56fb5047f9a7 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 Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 4d63e9be1848a3bebcc73f21a238f3990e50cf6f) Signed-off-by: Andrew Fuerste-Henry --- Koha/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Items.pm b/Koha/Items.pm index fcab80c066..90fe0f25ca 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -54,6 +54,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.39.5