This commit is contained in:
tanghucheng
2022-12-20 15:56:19 +08:00
parent 4446ffdc37
commit ea6e03772c
+1 -1
View File
@@ -433,7 +433,7 @@ class testcase extends control
/* Use this session link, when the tab is not QA, a session of the case list exists, and the session is not from the Dynamic page. */
$useSession = ($this->app->tab != 'qa' and $this->session->caseList and strpos($this->session->caseList, 'dynamic') === false);
$locateLink = $this->app->tab == 'project' ? $this->createLink('project', 'testcase', "projectID={$this->session->project}") : $this->createLink('testcase', 'browse', "productID={$this->post->product}&branch={$this->post->branch}&browseType=all&param=0&orderBy=id_desc");
$locateLink = $this->app->tab == 'project' ? $this->createLink('project', 'testcase', "projectID={$this->session->project}") : $this->createLink('testcase', 'browse', "productID={$this->post->product}&branch={$this->post->branch}");
$response['locate'] = $useSession ? $this->session->caseList : $locateLink;
return $this->send($response);
}