Add checks for shelf time and no fulfillment time in
HoldIsAvailable in OpenILS::Application::Trigger::Validator.
We've had some issues with poorly migrated data and people
messing with holds that causes the original logic to trigger
for unfilled holds. Plus, the extra precaution of checking
more precise conditions of an actually filled hold can't hurt,
can it?
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
!$hold->cancel_time and
$hold->capture_time and
$hold->current_copy and
+ $hold->shelf_time and
+ !$hold->fulfillment_time and
$hold->current_copy->status == OILS_COPY_STATUS_ON_HOLDS_SHELF;
return 0;