From: miker Date: Wed, 20 Jul 2005 22:14:36 +0000 (+0000) Subject: just get the first "nearest" hold X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bdd90eabc53b914d4776e71643cbf09ce85f7230;p=Evergreen.git just get the first "nearest" hold git-svn-id: svn://svn.open-ils.org/ILS/trunk@1324 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index 72049bae9b..97f25571a5 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -48,6 +48,7 @@ sub nearest_hold { AND hm.target_copy = ? AND h.capture_time IS NULL ORDER BY h.pickup_lib - (SELECT home_ou FROM actor.usr a WHERE a.id = h.usr), h.request_time + LIMIT 1 SQL return $id; }