* Finish task #4953.

This commit is contained in:
Yagami
2018-10-11 09:40:15 +08:00
parent c5f73613da
commit 5375f74140
6 changed files with 71 additions and 3 deletions
+8 -1
View File
@@ -1666,11 +1666,18 @@ class treeModel extends model
{
foreach($module->children as $children)
{
if($children->parent != 0) continue;//Filter project children modules.
if($children->parent != 0 && !empty($tree[$root]))
{
foreach($tree[$root] as $firstChildren)
{
if($firstChildren->id == $children->parent) $firstChildren->children[] = $children;
}
};//Filter project children modules.
$tree[$root][] = $children;
}
}
}
return $tree;
}
}