* Modify the test case back link problem.

This commit is contained in:
tianshujie
2021-08-27 15:24:32 +08:00
parent 66334479d5
commit 5f740be96b
8 changed files with 22 additions and 4 deletions
+5 -1
View File
@@ -132,7 +132,9 @@ class testcase extends control
$this->qa->setMenu($this->products, $productID, $branch);
}
$this->session->set('caseList', $this->app->getURI(true), $this->app->openApp);
$uri = $this->app->getURI(true);
$this->session->set('caseList', $uri, $this->app->openApp);
$this->session->set('bugList', $uri, $this->app->openApp);
$this->session->set('productID', $productID);
$this->session->set('moduleID', $moduleID);
$this->session->set('browseType', $browseType);
@@ -598,6 +600,8 @@ class testcase extends control
*/
public function view($caseID, $version = 0, $from = 'testcase', $taskID = 0)
{
$this->session->set('bugList', $this->app->getURI(true), $this->app->openApp);
$caseID = (int)$caseID;
$case = $this->testcase->getById($caseID, $version);
if(!$case)