From e41af015fb1d9ca8691eca061f90c7d78dd138cb Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 24 Jan 2017 16:02:09 +0100 Subject: [PATCH] UX console in progress... (Added hierachy system to modules in tree view) --- pandora_console/include/class/Tree.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index b7504ccf6e..0e58aee7a8 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1113,9 +1113,7 @@ class Tree { return array(); if ($this->type == 'agent') { - //html_debug($data, true); $data = $this->getProcessedModules($data); - html_debug($data, true); } return $data; @@ -1440,6 +1438,12 @@ class Tree { protected function processModule (&$module, $server = false) { global $config; + + if (isset($module['children'])) { + foreach ($module['children'] as $i => $children) { + $this->processModule($module['children'][$i], $server); + } + } $module['type'] = 'module'; $module['id'] = (int) $module['id'];