[open-ils-commits] [GIT] Evergreen ILS branch master updated. 1dbba207ec03198615abeadc9237f5582cdfb811
Evergreen Git
git at git.evergreen-ils.org
Wed Jun 22 15:38:44 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 1dbba207ec03198615abeadc9237f5582cdfb811 (commit)
from 9544ad05dc0d30ed5782b528fac3e2bdfa90e4dd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1dbba207ec03198615abeadc9237f5582cdfb811
Author: Jason Stephenson <jstephenson at mvlc.org>
Date: Wed Jun 22 10:48:58 2011 -0400
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 at mvlc.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm
index 260af53..98e18cc 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm
@@ -77,6 +77,8 @@ sub HoldIsAvailable {
!$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;
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/Application/Trigger/Validator.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list