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);
|
||||
|
|
|
|||
|
|
@ -262,6 +262,12 @@ our $I18N = {
|
|||
lastUpdated => 0,
|
||||
},
|
||||
|
||||
'bad workflow activity code' => {
|
||||
message => q|Syntax error found in %s, unable to edit this activity.|,
|
||||
context => q|Error message in the edit workflow screen, when an activity cannot be instanciated.|,
|
||||
lastUpdated => 1226814463,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue