Bug 3142: Exclude damaged items

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4d63e9be18)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2021-06-22 15:39:55 +02:00 committed by Andrew Fuerste-Henry
parent 6f82fa6a78
commit a92f82dbfe
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) : () ),
}
);
}