* Fix the links of the buttons in the feature bar on the product story list page.

This commit is contained in:
chentao
2023-06-09 16:03:28 +08:00
parent f7414c4445
commit 91c7f78905
2 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class product extends control
$project = $this->loadModel('project')->getByID($projectID);
$branchID = $this->productZen->getBranchID($product, $branch);
$orderBy = $orderBy ? $orderBy : $cookieOrderBy;
$branch = $branchID ?? $branch;
$branch = $branchID ? $branchID : $branch;
/* ATTENTION: be careful to change the order of follow sentences. */
$this->productZen->setMenu4Browse($projectID, $productID, $branch, $storyType);
+1 -6
View File
@@ -195,12 +195,7 @@ $fnGenerateSideBar();
featureBar
(
set::current($browseType),
set::linkParams("productID={$productID}&browseType={key}"),
set::moreMenuLinkCallback(function($browseType) use($projectIDParam, $productID, $branch, $storyType)
{
global $app;
return createLink($app->rawModule, $app->rawMethod, $projectIDParam . "productID=$productID&branch=$branch&browseType={$browseType}&param=0&storyType=$storyType");
}),
set::link(createLink($app->rawModule, $app->rawMethod, $projectIDParam . "productID=$productID&branch=$branch&browseType={key}&param=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&projectID=$projectID")),
li(searchToggle(set::module('story')))
);