From f6797fe2eac670f4ef181ea9ffaa133057ae639a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 22 Nov 2021 15:11:20 +0800 Subject: [PATCH] * Modify the code. --- module/story/view/batchedit.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index aa958d04bb..a595620fac 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -78,8 +78,8 @@ 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] = isset($modules[$story->product][$story->branch][$moduleID]) ? $moduleName : '/' . $product->name . $moduleName; + $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); }