* Fix bug#48627,#48628.
This commit is contained in:
@@ -872,14 +872,13 @@ class productZen extends product
|
||||
* Get products of the project.
|
||||
*
|
||||
* @param int $projectID
|
||||
* @param string $storyType
|
||||
* @param bool $isProjectStory
|
||||
* @access protected
|
||||
* @return array
|
||||
*/
|
||||
protected function getProjectProductList(int $projectID, string $storyType, bool $isProjectStory): array
|
||||
protected function getProjectProductList(int $projectID, bool $isProjectStory): array
|
||||
{
|
||||
if($isProjectStory && $storyType == 'story') return $this->product->getProducts($projectID);
|
||||
if($isProjectStory) return $this->product->getProducts($projectID);
|
||||
|
||||
return array();
|
||||
}
|
||||
@@ -1374,7 +1373,7 @@ class productZen extends product
|
||||
$projectID = $project ? (int)$project->id : 0;
|
||||
$productName = ($isProjectStory && empty($product)) ? $this->lang->product->all : $this->products[$productID];
|
||||
$storyIdList = $this->getStoryIdList($stories);
|
||||
$projectProducts = $this->getProjectProductList($projectID, $storyType, $isProjectStory);
|
||||
$projectProducts = $this->getProjectProductList($projectID, $isProjectStory);
|
||||
list($branchOpt, $branchTagOpt) = $this->getBranchAndTagOption($projectID, $product, $isProjectStory);
|
||||
|
||||
/* Set show module by config. */
|
||||
|
||||
@@ -762,7 +762,7 @@ class treeModel extends model
|
||||
foreach($products as $id => $product)
|
||||
{
|
||||
$extra['productID'] = $id;
|
||||
$projectProductLink = helper::createLink('projectstory', 'story', "projectID=$rootID&productID=$id&branch=all");
|
||||
$projectProductLink = helper::createLink('projectstory', 'story', "projectID=$rootID&productID=$id&branch=all&browseType=¶m=0&storyType=requirement");
|
||||
$executionProductLink = helper::createLink('execution', 'story', "executionID=$rootID&storyType=story&orderBy=&type=byProduct&praram=$id");
|
||||
$link = $this->app->rawModule == 'projectstory' ? $projectProductLink : $executionProductLink;
|
||||
if($productNum > 1)
|
||||
|
||||
Reference in New Issue
Block a user