* Fix sub-stage's attribute bug in execution-edit page.

This commit is contained in:
hufangzhou
2023-02-08 13:58:55 +08:00
parent 9916a95dc2
commit aa909099a4
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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;
+1 -1
View File
@@ -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>