Browse Source

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>
21.11.x
Jonathan Druart 3 years ago
parent
commit
4d63e9be18
  1. 1
      Koha/Items.pm

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

Loading…
Cancel
Save