Check if hold is really available in Trigger::Validator. user/jason@mvlc.org/HoldIsReallyAvailable
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 22 Jun 2011 14:48:58 +0000 (10:48 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 22 Jun 2011 14:48:58 +0000 (10:48 -0400)
commit6d48f0a1a10051936d570d03d16365410e39d30c
tree2f7de6beddc61b02e6399fe281ee530658fa9533
parent9544ad05dc0d30ed5782b528fac3e2bdfa90e4dd
Check if hold is really available in Trigger::Validator.

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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm