fixed corner case which causes edit page not to load if an activity is undefined or cannot be defined.
This commit is contained in:
parent
becc03efd8
commit
24e6111bf0
1 changed files with 1 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ sub www_editWorkflow {
|
|||
my $addmenu = '<div style="float: left; width: 200px; font-size: 11px;">';
|
||||
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";
|
||||
}
|
||||
$addmenu .= '</div>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue