diff --git a/module/execution/control.php b/module/execution/control.php index 552b9c99ee..e3d450dbed 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2084,6 +2084,13 @@ class execution extends control $project = $this->project->getById($execution->project); if(!$project->hasProduct) $this->lang->execution->PO = $this->lang->common->story . $this->lang->execution->owner; + if($execution->type == 'stage') + { + $parentStage = $this->project->getByID($execution->parent, 'stage'); + + $this->view->enableOptionalAttr = (empty($parentStage) or (!empty($parentStage) and $parentStage->attribute == 'mix')); + } + $this->view->title = $title; $this->view->position = $position; $this->view->executions = $executions; diff --git a/module/execution/view/edit.html.php b/module/execution/view/edit.html.php index 1f6e7c54a8..c6fa24596b 100644 --- a/module/execution/view/edit.html.php +++ b/module/execution/view/edit.html.php @@ -89,7 +89,7 @@ } else { - echo html::select('attribute', $lang->stage->typeList, $execution->attribute, "class='chosen form-control'"); + echo $enableOptionalAttr ? html::select('attribute', $lang->stage->typeList, $execution->attribute, "class='form-control chosen'") : zget($lang->stage->typeList, $execution->attribute); } ?>