From 26255c330c8cd26840b705bc22d35e4daea308f7 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 12 Jul 2023 19:02:10 +0800 Subject: [PATCH] * Code task #97076. --- module/product/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/control.php b/module/product/control.php index c3e72e5955..27a432ec2b 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -169,7 +169,7 @@ class product extends control /* Generate data. */ list($branchOpt, $branchTagOpt) = $this->productZen->getBranchAndTagOption($projectID, $product, $isProjectStory); - $branchOptions = (empty($product) && $isProjectStory) ? $this->productZen->getBranchOptions($projectProducts, $projectID) : array(); + $branchOptions = (empty($product) && $isProjectStory) ? $this->productZen->getBranchOptions($projectProducts, $projectID) : array($productID => $branchOpt); $storyTasks = $this->loadModel('task')->getStoryTaskCounts($storyIdList); $storyBugs = $this->loadModel('bug')->getStoryBugCounts($storyIdList); $storyCases = $this->loadModel('testcase')->getStoryCaseCounts($storyIdList);