From d02cb94ab6d4fddcfe2e5eca4d5eb26810f2172b Mon Sep 17 00:00:00 2001 From: renying Date: Thu, 21 Apr 2022 10:41:24 +0800 Subject: [PATCH] Fixbug#21457 --- module/product/control.php | 2 +- module/tree/control.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index 7aa6e809e8..fb68d3d80c 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -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)); } } diff --git a/module/tree/control.php b/module/tree/control.php index f6bdc2242c..ffb52e6b4e 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -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'); }