From ea6e03772c97a3cc8e592d660a71214d6a8271d0 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 20 Dec 2022 15:56:19 +0800 Subject: [PATCH] * Fix bug #31065. --- module/testcase/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 498f62b679..c1100eaf7d 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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¶m=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); }