* [bug#64076,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2025-07-17 00:57:22 +00:00
parent 437126262d
commit c54072c794
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ if($isFromDoc)
);
}
$linkParams = $projectParam . "productID=$productID&branch=$branch&browseType={key}&param=0" . $suffixParam;
$linkParams = $rawMethod == 'groupcase' ? "productID=$productID&branch=$branch&groupBy=$groupBy&objectID=0&caseType=$caseType&browseType={key}" : $projectParam . "productID=$productID&branch=$branch&browseType={key}&param=0" . $suffixParam;
$browseLink = createLink('testcase', 'browse', $linkParams);
if($app->tab == 'project') $browseLink = createLink('project', 'testcase', $linkParams);
if($app->tab == 'execution' && $from != 'doc') $browseLink = createLink('execution', 'testcase', "executionID={$executionID}&productID=$productID&branch=$branch&browseType={key}");
@@ -174,7 +174,7 @@ featureBar
set::linkParams($rawMethod == 'zerocase' || $rawMethod == 'browseunits' || $rawMethod == 'browsescene' ? null : $linkParams),
set::link($rawMethod == 'zerocase' || $rawMethod == 'browseunits' || $rawMethod == 'browsescene' ? $browseLink : null),
set::queryMenuLinkCallback(array(fn($key) => str_replace('{queryID}', (string)$key, $queryMenuLink))),
set::current($methodName == 'browse' ? $this->session->caseBrowseType : null),
set::current(in_array($methodName, array('groupcase', 'browse')) ? $this->session->caseBrowseType : null),
set::load($load),
set::app($app->tab),
$canSwitchCaseType ? to::leading