[open-ils-commits] r11254 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 18 10:45:13 EST 2008
Author: miker
Date: 2008-11-18 10:45:10 -0500 (Tue, 18 Nov 2008)
New Revision: 11254
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
forward-porting longoverdue fixes from 1.4 after testing
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2008-11-18 15:29:30 UTC (rev 11253)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2008-11-18 15:45:10 UTC (rev 11254)
@@ -186,12 +186,12 @@
SET stop_fines = 'LONGOVERDUE',
stop_fines_time = now()
WHERE id IN (
- SELECT id
+ SELECT circ.id
FROM $circ circ
LEFT JOIN $setting setting
ON (circ.circ_lib = setting.org_unit AND setting.name = 'circ.long_overdue.interval')
WHERE circ.checkin_time IS NULL AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','LONGOVERDUE'))
- AND AGE(circ.due_date) > CAST( COALESCE( BTRIM( FIRST(setting.value),'"' ), ? ) AS INTERVAL)
+ AND AGE(circ.due_date) > CAST( COALESCE( BTRIM( setting.value,'"' ), ? ) AS INTERVAL)
)
SQL
More information about the open-ils-commits
mailing list