From 8177758b873e1beec6686fab0b4c09f8b04bb764 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 20 Sep 2019 16:30:23 +0800 Subject: [PATCH] * fix bug #2007. --- module/tree/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/tree/model.php b/module/tree/model.php index 17baad9782..bd5241c751 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -248,6 +248,8 @@ class treeModel extends model { $parentModules = explode(',', trim($module->path, ',')); if($type == 'product' and isset($noProductModules[$parentModules[0]])) continue; + /* Fix bug #2007. */ + if($type == 'product' and $module->type == 'task' and !isset($modules[$parentModules[0]])) continue; $rootName = ($productNum > 1 and $type == 'product') ? "/$rootModule/" : '/'; if($type == 'product' and $module->branch and isset($branchGroups[$id][$module->branch])) $rootName .= $branchGroups[$id][$module->branch] . '/'; $this->buildTreeArray($treeMenu, $modules, $module, $rootName);