* Finish task#8418.

This commit is contained in:
hufangzhou
2020-11-17 13:17:14 +08:00
parent 34b41b1daf
commit ff69596dcd
2 changed files with 2 additions and 3 deletions
-3
View File
@@ -109,8 +109,6 @@ class testcase extends control
$actionURL = $this->createLink('testcase', 'browse', "productID=$productID&branch=$branch&browseType=bySearch&queryID=myQueryID");
$this->config->testcase->search['onMenuBar'] = 'yes';
$libs = $this->loadModel('caselib')->getLibraries();
$this->config->testcase->search['params']['lib']['values'] = $libs;
$this->testcase->buildSearchForm($productID, $this->products, $queryID, $actionURL);
$showModule = !empty($this->config->datatable->testcaseBrowse->showModule) ? $this->config->datatable->testcaseBrowse->showModule : '';
@@ -140,7 +138,6 @@ class testcase extends control
$this->view->suiteList = $this->loadModel('testsuite')->getSuites($productID);
$this->view->suiteID = $suiteID;
$this->view->setModule = true;
$this->view->libs = $libs;
$this->display();
}
+2
View File
@@ -1379,6 +1379,8 @@ class testcaseModel extends model
{
$this->config->testcase->search['params']['product']['values'] = array($productID => $products[$productID], 'all' => $this->lang->testcase->allProduct);
$this->config->testcase->search['params']['module']['values'] = $this->loadModel('tree')->getOptionMenu($productID, $viewType = 'case');
$this->config->testcase->search['params']['lib']['values'] = $this->loadModel('caselib')->getLibraries();
if($this->session->currentProductType == 'normal')
{
unset($this->config->testcase->search['fields']['branch']);