* Fix sub-stage's attribute bug in execution-edit page.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user