Check if hold is really available in Trigger::Validator.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 22 Jun 2011 14:48:58 +0000 (10:48 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 22 Jun 2011 19:37:57 +0000 (15:37 -0400)
commit179c419590eb4fd1968da60aee5cdd3035cecf6f
tree4ea2516520ca98b067374a7422abd8613b84c915
parent7f3951d310dbd06ef5b3efd2565ffa7777ad4c7f
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm