fix a macro processing bug caused by not sending the session to Macro::process
This commit is contained in:
parent
6825adae82
commit
6cef5a8e02
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ sub execute {
|
||||||
my $user = shift;
|
my $user = shift;
|
||||||
my $cmd = $self->get("command");
|
my $cmd = $self->get("command");
|
||||||
$self->session->user({user=>$user});
|
$self->session->user({user=>$user});
|
||||||
WebGUI::Macro::process(\$cmd);
|
WebGUI::Macro::process($self->session, \$cmd);
|
||||||
if (system($cmd)) {
|
if (system($cmd)) {
|
||||||
$self->session->errorHandler->error("Workflow: RunCommandAsUser failed because: $!");
|
$self->session->errorHandler->error("Workflow: RunCommandAsUser failed because: $!");
|
||||||
return $self->ERROR;
|
return $self->ERROR;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue