From: Mike Rylander Date: Fri, 7 Feb 2014 21:00:01 +0000 (-0500) Subject: Include calculated 0-prox locations in the stalling interval for op capture X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=88363457b5e78807a34e6ac2b2a836b9249610ab;p=evergreen%2Ftadl.git Include calculated 0-prox locations in the stalling interval for op capture Signed-off-by: Mike Rylander Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm index acfd24578c..912996df4b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm @@ -548,7 +548,7 @@ sub nearest_hold { ON ( csp.id = ausp.standing_penalty AND csp.block_list LIKE '%CAPTURE%' ) $addl_join WHERE hm.target_copy = ? - AND (AGE(NOW(),h.request_time) >= CAST(? AS INTERVAL) OR p.prox = 0) + AND (AGE(NOW(),h.request_time) >= CAST(? AS INTERVAL) OR hm.proximity = 0 OR p.prox = 0) AND h.capture_time IS NULL AND h.cancel_time IS NULL AND (h.expire_time IS NULL OR h.expire_time > NOW())