[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 572d5da336b28a171f88b74c093723b3443f89c8
Evergreen Git
git at git.evergreen-ils.org
Fri Jun 7 12:45:32 EDT 2013
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_4 has been updated
via 572d5da336b28a171f88b74c093723b3443f89c8 (commit)
from 778887924c7e543164dda30d1c67db38f017bc28 (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 572d5da336b28a171f88b74c093723b3443f89c8
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Thu Jul 26 10:25:32 2012 -0400
Make Force/Recall holds always return as nearest
Without even running the hold rules.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
(Just whitespace conflicts on tab vs space -- repaired by hand.)
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index cde9619..d63f907 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -3041,6 +3041,11 @@ sub find_nearest_permitted_hold {
$logger->info("circulator: checking if hold $holdid is permitted for copy $bc");
my $hold = $editor->retrieve_action_hold_request($holdid) or next;
+ # Force and recall holds bypass all rules
+ if ($hold->hold_type eq 'R' || $hold->hold_type eq 'F') {
+ $best_hold = $hold;
+ last;
+ }
my $reqr = $reqr_cache{$hold->requestor} || $editor->retrieve_actor_user($hold->requestor);
my $rlib = $org_cache{$hold->request_lib} || $editor->retrieve_actor_org_unit($hold->request_lib);
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/lib/OpenILS/Application/Circ/Holds.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list