* Finish task #7932. Fix bug #3422.

This commit is contained in:
holan20180123
2020-09-23 13:27:08 +08:00
parent 103a6d6011
commit d85d370800
8 changed files with 56 additions and 3 deletions
+5
View File
@@ -97,6 +97,11 @@ class testcase extends control
/* Get test cases. */
$cases = $this->testcase->getTestCases($productID, $branch, $browseType, $browseType == 'bysearch' ? $queryID : $suiteID, $moduleID, $sort, $pager);
if(empty($cases) and $pageID > 1)
{
$pager = pager::init(0, $recPerPage, 1);
$cases = $this->testcase->getTestCases($productID, $branch, $browseType, $browseType == 'bysearch' ? $queryID : $suiteID, $moduleID, $sort, $pager);
}
/* save session .*/
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', $browseType != 'bysearch' ? false : true);