[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 30783aded200f0041cc18217ca360a1b17058351

Evergreen Git git at git.evergreen-ils.org
Fri Jun 7 12:46:20 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_2 has been updated
       via  30783aded200f0041cc18217ca360a1b17058351 (commit)
      from  68cfd6d1c5035e6b12a627b6b0b774c07182e6d2 (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 30783aded200f0041cc18217ca360a1b17058351
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>

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 cb45fd3..85c7615 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -2944,6 +2944,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