From 9f0f23fa1530b362ec29637771f2c199ae8d9401 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 31 Mar 2009 16:50:24 +0000 Subject: [PATCH] typo:actor.org_unit_descendents. run_time is now a date string instead of a query git-svn-id: svn://svn.open-ils.org/ILS/trunk@12734 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm b/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm index f84ef2acf2..577d718e52 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm @@ -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 -- 2.11.0