fix a macro processing bug caused by not sending the session to Macro::process

This commit is contained in:
Colin Kuskie 2007-04-05 16:18:07 +00:00
parent 6825adae82
commit 6cef5a8e02

View file

@ -80,7 +80,7 @@ sub execute {
my $user = shift;
my $cmd = $self->get("command");
$self->session->user({user=>$user});
WebGUI::Macro::process(\$cmd);
WebGUI::Macro::process($self->session, \$cmd);
if (system($cmd)) {
$self->session->errorHandler->error("Workflow: RunCommandAsUser failed because: $!");
return $self->ERROR;