[open-ils-commits] r14695 - in trunk/Open-ILS: examples src/support-scripts (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Oct 30 09:18:12 EDT 2009


Author: erickson
Date: 2009-10-30 09:18:10 -0400 (Fri, 30 Oct 2009)
New Revision: 14695

Modified:
   trunk/Open-ILS/examples/action_trigger_filters.json.example
   trunk/Open-ILS/src/support-scripts/action_trigger_runner.pl
Log:
repaired function name and JSON

Modified: trunk/Open-ILS/examples/action_trigger_filters.json.example
===================================================================
--- trunk/Open-ILS/examples/action_trigger_filters.json.example	2009-10-30 02:52:49 UTC (rev 14694)
+++ trunk/Open-ILS/examples/action_trigger_filters.json.example	2009-10-30 13:18:10 UTC (rev 14695)
@@ -1,12 +1,12 @@
 {
 
-'checkout.due' :
-    { 'context_org' : 'circ_lib',
-      'filter'      :
-            { 'checkin_time'  : null,
-              '-or'           :
-                    [ { 'stop_fines'  : ['MAXFINES', 'LONGOVERDUE'] },
-                      { 'stop_fines'  : null }
+"checkout.due" :
+    { "context_org" : "circ_lib",
+      "filter"      :
+            { "checkin_time"  : null,
+              "-or"           :
+                    [ { "stop_fines"  : ["MAXFINES", "LONGOVERDUE"] },
+                      { "stop_fines"  : null }
                     ]
             }
     }

Modified: trunk/Open-ILS/src/support-scripts/action_trigger_runner.pl
===================================================================
--- trunk/Open-ILS/src/support-scripts/action_trigger_runner.pl	2009-10-30 02:52:49 UTC (rev 14694)
+++ trunk/Open-ILS/src/support-scripts/action_trigger_runner.pl	2009-10-30 13:18:10 UTC (rev 14695)
@@ -58,7 +58,7 @@
 
 if ($opt_custom_filter) {
     open FILTERS, $opt_custom_filter;
-    $hook_handlers = OpenSRF::Utils::JSON->JSON2Perl(join('',(<FILTERS>)));
+    $hook_handlers = OpenSRF::Utils::JSON->JSON2perl(join('',(<FILTERS>)));
     close FILTERS;
 }
 



More information about the open-ils-commits mailing list