From 7adb5240cec2b863bf635f7f140a251e7bebe377 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 10 Jul 2023 13:19:10 +0800 Subject: [PATCH] * Adjust for module tree in execution task with more products. --- module/tree/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/tree/model.php b/module/tree/model.php index ef65e0306b..836eebf4f6 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -844,7 +844,9 @@ class treeModel extends model /* If not manage, ignore unused modules. */ if(!isset($executionModules[$module->id])) continue; - $menu[] = $this->buildTree($module, 'story', 0, $userFunc, $extra); + $treeMenu = $this->buildTree($module, 'story', 0, $userFunc, $extra); + if($productNum > 1 && $module->parent == 0) $treeMenu->parent = $module->root; + $menu[] = $treeMenu; } } }