From 15867e4fd30487df3ccdadc3050d3ce1571548ef Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 23 Nov 2021 19:03:20 +0800 Subject: [PATCH] * Fix bug#16638. --- module/testcase/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index 7b20d5e3cf..e4d51d810c 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -1472,7 +1472,8 @@ class testcaseModel extends model } else { - $this->config->testcase->search['fields']['branch'] = $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName['branch']); + $productInfo = $this->loadModel('product')->getByID($productID); + $this->config->testcase->search['fields']['branch'] = sprintf($this->lang->product->branch, $this->lang->product->branchName[$productInfo->type]); $this->config->testcase->search['params']['branch']['values'] = array('' => '', '0' => $this->lang->branch->main) + $this->loadModel('branch')->getPairs($productID, 'noempty') + array('all' => $this->lang->branch->all); } if(!$this->config->testcase->needReview) unset($this->config->testcase->search['params']['status']['values']['wait']);