Merge branch 'sprint/170_tianshujie_16533' into 'sprint/170'

* Fix bug #16533.

See merge request easycorp/zentaopms!586
This commit is contained in:
李玉春
2021-11-22 07:17:34 +00:00
+5 -2
View File
@@ -78,8 +78,11 @@ foreach(explode(',', $showFields) as $field)
foreach($branches as $branchID => $branchName) $branches[$branchID] = '/' . $product->name . '/' . $branchName;
}
if(!isset($modules[$story->product][$story->branch])) $modules[$story->product][$story->branch] = $this->tree->getOptionMenu($story->product, 'story', 0, $story->branch);
foreach($modules[$story->product][$story->branch] as $moduleID => $moduleName) $modules[$story->product][$story->branch][$moduleID] = '/' . $product->name . $moduleName;
if(!isset($story->product][$story->branch]))
{
$modules[$story->product][$story->branch] = $this->tree->getOptionMenu($story->product, 'story', 0, $story->branch);
foreach($modules[$story->product][$story->branch] as $moduleID => $moduleName) $modules[$story->product][$story->branch][$moduleID] = '/' . $product->name . $moduleName;
}
$productPlans = $this->productplan->getPairs($story->product, $branch);
}