* adjust buildSearchForm method: put setSearchParams method in model.

This commit is contained in:
chenfeiCF
2016-03-13 07:43:03 +08:00
parent 931a13641b
commit ab8f86396f
11 changed files with 10 additions and 7 deletions
-2
View File
@@ -89,7 +89,6 @@ class testcase extends control
/* Build the search form. */
$actionURL = $this->createLink('testcase', 'browse', "productID=$productID&branch=$branch&browseType=bySearch&queryID=myQueryID");
$this->testcase->buildSearchForm($productID, $this->products, $queryID, $actionURL);
$this->loadModel('search')->setSearchParams($this->config->testcase->search);
/* Assign. */
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->common;
@@ -649,7 +648,6 @@ class testcase extends control
/* Build the search form. */
$actionURL = $this->createLink('testcase', 'linkCases', "caseID=$caseID&browseType=bySearch&queryID=myQueryID", '', true);
$this->testcase->buildSearchForm($case->product, $this->products, $queryID, $actionURL);
$this->loadModel('search')->setSearchParams($this->config->testcase->search);
/* Get cases to link. */
$cases2Link = $this->testcase->getCases2Link($caseID, $browseType, $queryID);