* Fix bug#42207.
This commit is contained in:
@@ -27,7 +27,7 @@ foreach($stories as $story) $storyProductIds[$story->product] = $story->product;
|
||||
$storyProductID = count($storyProductIds) > 1 ? 0 : $productID;
|
||||
|
||||
/* Generate sidebar to display module tree menu. */
|
||||
$fnGenerateSideBar = function() use ($moduleTree, $moduleID, $productID, $branchID, $projectHasProduct)
|
||||
$fnGenerateSideBar = function() use ($moduleTree, $moduleID, $productID, $branchID, $projectHasProduct, $param, $isProjectStory)
|
||||
{
|
||||
global $app;
|
||||
$params = $app->rawParams;
|
||||
@@ -35,13 +35,14 @@ $fnGenerateSideBar = function() use ($moduleTree, $moduleID, $productID, $branch
|
||||
if(isset($params['param'])) $params['param'] = '';
|
||||
if(isset($params['recTotal'])) $params['recTotal'] = 0;
|
||||
if(isset($params['pageID'])) $params['pageID'] = 1;
|
||||
if($isProjectStory && $params['productID']) $params['productID'] = 0;
|
||||
|
||||
sidebar
|
||||
(
|
||||
moduleMenu
|
||||
(
|
||||
set::modules($moduleTree),
|
||||
set::activeKey($moduleID),
|
||||
set::activeKey($isProjectStory && empty($param) && !empty($productID) ? $productID : $moduleID),
|
||||
set::closeLink(helper::createLink($app->rawModule, $app->rawMethod, http_build_query($params))),
|
||||
$productID ? set::settingLink(helper::createLink('tree', 'browse', "rootID=$productID&view=story¤tModuleID=0&branch=$branchID")) : null,
|
||||
$projectHasProduct ? set::settingApp('product') : null
|
||||
|
||||
Reference in New Issue
Block a user