And adjust the comment to make more sense. There is no higher level filter
that prevents copy holds on parted items, so there is no filter for them to
"slip through".
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
isTrue($_->holdable) &&
!isTrue($_->deleted) &&
(isTrue($hold->mint_condition) ? isTrue($_->mint_condition) : 1) &&
- ( ($hold->hold_type ne 'C' && $hold->hold_type ne 'I') ? # Copy-ish holds can target if they slipped through
- ($hold->hold_type ne 'P' ? $_->part_maps->count == 0 : 1) : 1 )
+ ( ( $hold->hold_type ne 'C' && $hold->hold_type ne 'I' # Copy-level holds don't care about parts
+ && $hold->hold_type ne 'P' ) ? $_->part_maps->count == 0 : 1)
} @$all_copies;
}