From b646220dde3a487f0edeac858160d91a416014df Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 13 Dec 2006 16:35:23 +0000 Subject: [PATCH] added hold-type "R" logic to short-circuit the best-hold searching to use the hold that directly targets the copy in question git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6690 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm index b3589ef9d7..b722c8d70c 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm @@ -1083,6 +1083,9 @@ sub find_nearest_permitted_hold { } ); + # hold->type "R" means we need this copy + for my $h (@$old_holds) { return ($h) if $h->type eq 'R'; } + $logger->info("circulator: searching for best hold at org ".$user->ws_ou." and copy $bc"); # search for what should be the best holds for this copy to fulfill -- 2.11.0