]> git.evergreen-ils.org Git - Evergreen.git/commit
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:38:36 +0000 (15:38 -0400)
commit13ac1f4007b2cbec96ebf094ee6541f5f4505541
tree2cb75bf685e7adf5e3033214f93bd3623249d896
parent77c7da25da70e53e6a3fd2b5d7b5f3a6560785e6
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/OpenILS/Application/Trigger/Validator.pm