[open-ils-commits] r12734 - trunk/Open-ILS/src/perlmods/OpenILS/Application (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 31 12:50:27 EDT 2009


Author: erickson
Date: 2009-03-31 12:50:24 -0400 (Tue, 31 Mar 2009)
New Revision: 12734

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm
Log:
typo:actor.org_unit_descendents.  run_time is now a date string instead of a query

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm	2009-03-31 14:25:59 UTC (rev 12733)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm	2009-03-31 16:50:24 UTC (rev 12734)
@@ -285,7 +285,7 @@
         # we may need to do some work to backport this to 1.2
         $filter->{ $location_field } = { 'in' =>
             {
-                select  => { aou => [{ column => 'id', transform => 'actor.org_unit_descendents', result_field => 'id' }] },
+                select  => { aou => [{ column => 'id', transform => 'actor.org_unit_descendants', result_field => 'id' }] },
                 from    => 'aou',
                 where   => { id => $def->owner }
             }
@@ -293,12 +293,11 @@
 
         my $run_time = 'now';
         if ($active) {
-            $run_time = {
-                '<=' => DateTime
+            $run_time = 
+                DateTime
                     ->now
                     ->add( seconds => interval_to_seconds($def->delay) )
-                    ->strftime( '%F %T%z' )
-            };
+                    ->strftime( '%F %T%z' );
         } else {
             $filter->{ $def->delay_field } = {
                 '<=' => DateTime



More information about the open-ils-commits mailing list