From 0f27813ada8778d450e413daa06aa181869817c6 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 16 Mar 2006 19:49:07 +0000 Subject: [PATCH] was using wrong object --- lib/WebGUI/Workflow/Activity/CreateCronJob.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Workflow/Activity/CreateCronJob.pm b/lib/WebGUI/Workflow/Activity/CreateCronJob.pm index b2d0b5978..8f1cbe8a6 100644 --- a/lib/WebGUI/Workflow/Activity/CreateCronJob.pm +++ b/lib/WebGUI/Workflow/Activity/CreateCronJob.pm @@ -129,6 +129,7 @@ See WebGUI::Workflow::Activity::execute() for details. sub execute { my $self = shift; my $object = shift; + my $instance = shift; my $cron = WebGUI::Workflow::Cron->create($self->session, { title=>"Generated by workflow ".$self->getId." (".$self->get("title").")", enabled=>$self->get("enabled"), @@ -140,9 +141,9 @@ sub execute { dayOfMonth=>$self->get("dayOfMonth"), monthOfYear=>$self->get("monthOfYear"), dayOfWeek=>$self->get("dayOfWeek"), - className=>$self->get("className"), - methodName=>$self->get("methodName"), - parameters=>$self->get("parameters") + className=>$instance->get("className"), + methodName=>$instance->get("methodName"), + parameters=>$instance->get("parameters") }); return defined $cron ? 1 : 0; }