diff --git a/module/testtask/control.php b/module/testtask/control.php index 833d9f3111..76812d85d7 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -408,9 +408,10 @@ class testtask extends control /* 从数据库中查询一个测试单下关联的测试用例。*/ /* Query the cases associated with a testtask from the database. */ $runs = $this->testtask->getTaskCases($productID, $browseType, $queryID, $moduleID, $sort, $pager, $testtask); - $runs = $this->testtask->getSceneCases($productID, $runs); $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', false); + $runs = $this->testtask->getSceneCases($productID, $runs); + $this->testtaskZen->setSearchParamsForCases($product, $moduleID, $taskID, $queryID); $this->testtaskZen->assignForCases($product, $testtask, $runs, $moduleID, $browseType, $param, $orderBy, $pager); $this->display();