Fixbug#21457
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user