Merge branch dev/bug-63505 of zentao/zentaopms (#9866)

This commit is contained in:
刘刚
2025-06-24 17:20:41 +08:00
committed by Gitfox
+3 -3
View File
@@ -2434,9 +2434,9 @@ class testcaseZen extends testcase
helper::setcookie('caseModule', '0');
$currentModule = $this->app->tab == 'project' ? 'project' : 'testcase';
$currentMethod = $this->app->tab == 'project' ? 'testcase' : 'browse';
$projectParam = $this->app->tab == 'project' ? "projectID={$this->session->project}&" : '';
$currentModule = $this->app->tab == 'qa' ? 'testcase' : $this->app->tab;
$currentMethod = $this->app->tab == 'qa' ? 'browse' : 'testcase';
$projectParam = $this->app->tab == 'qa' ? '' : "{$this->app->tab}ID=" . zget($_SESSION, $this->app->tab, 0) . '&';
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => $this->createLink($currentModule, $currentMethod, "{$projectParam}productID={$productID}&branch={$branch}&browseType=all&param=0&caseType=&orderBy=id_desc")));
}