[open-ils-commits] r7728 -
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 28 13:54:50 EDT 2007
Author: miker
Date: 2007-08-28 13:48:58 -0400 (Tue, 28 Aug 2007)
New Revision: 7728
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
fixing query to look at all libs under depth for nearest hold stalling
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2007-08-28 17:38:04 UTC (rev 7727)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2007-08-28 17:48:58 UTC (rev 7728)
@@ -191,12 +191,12 @@
"actor.org_unit_descendants($pl, $depth)" :
"actor.org_unit_descendants($pl)" ;
- my $ids = action::hold_request->db_Main->selectcol_arrayref(<<" SQL", {}, $cp, $age);
+ my $ids = action::hold_request->db_Main->selectcol_arrayref(<<" SQL", {}, $pl, $cp, $age);
SELECT h.id
FROM action.hold_request h
JOIN action.hold_copy_map hm ON (hm.hold = h.id)
JOIN $descendents d ON (d.id = h.pickup_lib)
- JOIN actor.org_unit_proximity p ON (p.from_org = d.id AND p.to_org = h.pickup_lib)
+ JOIN actor.org_unit_proximity p ON (p.from_org = ? AND p.to_org = d.id)
WHERE hm.target_copy = ?
AND AGE(NOW(),h.request_time) >= CAST(? AS INTERVAL)
AND h.capture_time IS NULL
More information about the open-ils-commits
mailing list