[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. f44f3f730d761aeea9926a8d15e486aa59b47084
Evergreen Git
git at git.evergreen-ils.org
Wed May 23 08:48:04 EDT 2012
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, rel_2_2 has been updated
via f44f3f730d761aeea9926a8d15e486aa59b47084 (commit)
from 1f1235905d934446f0732e842bd0be91f33e7b73 (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 f44f3f730d761aeea9926a8d15e486aa59b47084
Author: Bill Erickson <berick at esilibrary.com>
Date: Tue May 22 16:22:14 2012 -0400
TPAC: recover the ability to override hold placement failures
There is a certain class of hold failure events (e.g. HOLD_EXISTS,
HOLD_ITEM_CHECKED_OUT) that can be overridden by patrons when they have
the correct override permission. This change recovers that ability,
which was recently removed with 99e8fc893a.
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
index eaa9622..e349f3f 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
@@ -905,7 +905,8 @@ sub attempt_hold_placement {
$hdata->{could_override} = 1;
$hdata->{age_protect} = 1;
} else {
- $hdata->{could_override} = $result->{place_unfillable};
+ $hdata->{could_override} = $result->{place_unfillable} ||
+ $self->test_could_override($hdata->{hold_failed_event});
}
} elsif (ref $result eq 'ARRAY') {
$hdata->{hold_failed_event} = $result->[0];
@@ -914,7 +915,8 @@ sub attempt_hold_placement {
$hdata->{could_override} = 1;
$hdata->{age_protect} = 1;
} else {
- $hdata->{could_override} = $result->[4]; # place_unfillable
+ $hdata->{could_override} = $result->[4] || # place_unfillable
+ $self->test_could_override($hdata->{hold_failed_event});
}
}
}
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/WWW/EGCatLoader/Account.pm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list