Fixbug#21457

This commit is contained in:
renying
2022-04-21 10:41:24 +08:00
parent b32081bab7
commit d02cb94ab6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -990,7 +990,7 @@ class product extends control
{
$executions = empty($executions) ? array('' => '') : $executions;
$executionsName = $from == 'showImport' ? "execution[$number]" : "executions[$number]";
$misc = $from == 'showImport' ? "class='form-control' onchange='loadExecutionBuilds(this.value, $number)'" : "class='form-control' onchange='loadExecutionBuilds($productID, this.value, $number)'";
$misc = $from == 'showImport' ? "class='form-control' onchange='loadImportExecutionRelated(this.value, $number)'" : "class='form-control' onchange='loadExecutionBuilds($productID, this.value, $number)'";
return print(html::select($executionsName, $executions, '', $misc));
}
}
+1 -1
View File
@@ -548,7 +548,7 @@ class tree extends control
$modules = $this->tree->getOptionMenu($productID, $viewType, $startModuleID = 0, $branchID);
$moduleName = $viewType == 'bug' && $from != 'showImport' ? "modules[$number]" : "module[$number]";
$moduleName = ($viewType == 'bug' and $from != 'showImport') ? "modules[$number]" : "module[$number]";
$modules = empty($modules) ? array('' => '') : $modules;
echo html::select($moduleName, $modules, $currentModuleID, 'class=form-control');
}