Trap trying to instance bad workflow activities.
Remove the ProcessRecurringPayments activity from the user's config.
This commit is contained in:
parent
4bfb2d200c
commit
4e91f3d500
4 changed files with 31 additions and 1 deletions
|
|
@ -217,7 +217,12 @@ sub www_editWorkflow {
|
|||
foreach my $class (@{$workflowActivities->{$workflow->get("type")}}) {
|
||||
my $activity = WebGUI::Workflow::Activity->newByPropertyHashRef($session, {className=>$class});
|
||||
next unless defined $activity;
|
||||
$addmenu .= '<a href="'.$session->url->page("op=editWorkflowActivity;className=".$class.";workflowId=".$workflow->getId).'">'.$activity->getName."</a><br />\n";
|
||||
if ($activity->can('getName')) {
|
||||
$addmenu .= '<a href="'.$session->url->page("op=editWorkflowActivity;className=".$class.";workflowId=".$workflow->getId).'">'.$activity->getName."</a><br />\n";
|
||||
}
|
||||
else {
|
||||
$addmenu .= sprintf $i18n->get('bad workflow activity code'), $class;
|
||||
}
|
||||
}
|
||||
$addmenu .= '</div>';
|
||||
my $f = WebGUI::HTMLForm->new($session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue