This commit is contained in:
songchenxuan
2021-11-24 10:00:59 +08:00
parent c6e999ecdc
commit fc0e55a418
+1 -1
View File
@@ -1047,7 +1047,7 @@ class testtask extends control
}
else
{
$this->config->testcase->search['fields']['branch'] = $this->lang->product->branch;
$this->config->testcase->search['fields']['branch'] = sprintf($this->lang->product->branch, $this->lang->product->branchName[$task->productType]);
$branches = array('' => '') + $this->loadModel('branch')->getPairs($task->product, 'noempty');
if($task->branch) $branches = array('' => '', $task->branch => $branches[$task->branch]);
$this->config->testcase->search['params']['branch']['values'] = $branches;