typo:actor.org_unit_descendents. run_time is now a date string instead of a query
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Mar 2009 16:50:24 +0000 (16:50 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Mar 2009 16:50:24 +0000 (16:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12734 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm

index f84ef2a..577d718 100644 (file)
@@ -285,7 +285,7 @@ sub create_batch_events {
         # 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 @@ sub create_batch_events {
 
         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