[Console] Now the modules are shown correctly into the trees that nobody use

This commit is contained in:
Alejandro Gallardo Escobar 2017-10-26 11:51:15 +02:00
parent db056100e2
commit ecdbf9bcc4
1 changed files with 2 additions and 1 deletions

View File

@ -1133,7 +1133,8 @@ class Tree {
if (empty($data))
return array();
if ($this->type == 'agent') {
// [26/10/2017] It seems the module hierarchy should be only available into the tree by group
if ($this->rootType == 'group' && $this->type == 'agent') {
$data = $this->getProcessedModules($data);
}