* Modify the code.

This commit is contained in:
tianshujie
2021-11-22 15:16:51 +08:00
parent f6797fe2ea
commit 76bd965626
+5 -2
View File
@@ -78,8 +78,11 @@ foreach(explode(',', $showFields) as $field)
foreach($branches as $branchID => $branchName) $branches[$branchID] = '/' . $product->name . '/' . $branchName;
}
$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);
}