* Code for bug #48748.

This commit is contained in:
sunguangming
2024-04-30 10:39:55 +08:00
parent 7f3366ac45
commit f2951fec8a
+1
View File
@@ -1983,6 +1983,7 @@ class productModel extends model
if($module == 'testtask' && $method == 'unitcases') return helper::createLink($module, 'browseUnits', "productID=%s&browseType=newest&orderBy=id_desc&recTotal=0&recPerPage=0&pageID=1" . ($this->app->tab == 'project' ? "&projectID={$this->session->project}" : ''));
if(($module == 'story' && in_array($method, array('create', 'batchcreate'))) || ($module == 'product' && $method == 'browse')) return helper::createLink('product', 'browse', "productID=%s&branch={$branchID}&browseType=unclosed&param=0&storyType={$params[0]}");
if($module == 'story' && $method == 'view') return helper::createLink('product', 'browse', "productID=%s&branch={$branchID}");
if($module == 'execution' && in_array($method, array('bug', 'testcase'))) return helper::createLink($module, $method, "executionID={$params[0]}&productID=%s{$branchParam}");
if($module == 'product' && in_array($method, array('doc', 'view'))) return helper::createLink($module, $method, "productID=%s");