Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

NEW: default the action that a new transition is created from.

  • Loading branch information...
commit 25fecb7d707e86e90544c1ead51233a092fc60ea 1 parent 9b4289a
@normann normann authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 code/dataobjects/WorkflowTransition.php
View
4 code/dataobjects/WorkflowTransition.php
@@ -96,13 +96,15 @@ public function getCMSFields() {
if ($actions) {
$options = $actions->map();
}
+
+ $defaultAction = $action?$action->ID:"";
$typeOptions = $this->dbObject('Type')->enumValues();
$fields->addFieldToTab('Root.Main', new DropdownField(
'ActionID',
_t('WorkflowTransition.ACTION', 'Action'),
- $options));
+ $options, $defaultAction));
$fields->addFieldToTab('Root.Main', new DropdownField(
'NextActionID',
_t('WorkflowTransition.NEXT_ACTION', 'Next Action'),
Please sign in to comment.
Something went wrong with that request. Please try again.