mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#12686 fixed filter in tree module group
This commit is contained in:
parent
83c6d3735e
commit
590c7f7480
pandora_console/include/class
@ -304,7 +304,7 @@ class Tree
|
||||
}
|
||||
|
||||
$filter_status = '';
|
||||
if ((int) $this->filter['statusModule'] !== -1 && $this->type === 'module') {
|
||||
if ((int) $this->filter['statusModule'] !== -1 && ($this->type === 'module' || $this->type === 'module_group')) {
|
||||
$filter_status = ' AND tae.estado = '.$this->filter['statusModule'];
|
||||
}
|
||||
|
||||
|
@ -31,8 +31,8 @@ class TreeModuleGroup extends Tree
|
||||
'tmg.id_mg AS id',
|
||||
];
|
||||
$this->L1inner = 'INNER JOIN tmodule_group tmg ON tmg.id_mg = x2.g';
|
||||
$this->L1innerInside = 'INNER JOIN tagente_modulo tam
|
||||
ON ta.id_agente = tam.id_agente';
|
||||
$this->L1innerInside = 'INNER JOIN tagente_modulo tam ON ta.id_agente = tam.id_agente
|
||||
INNER JOIN tagente_estado tae ON tae.id_agente_modulo = tam.id_agente_modulo';
|
||||
$this->L1orderByFinal = 'tmg.name';
|
||||
|
||||
$this->L2condition = 'AND tam.id_module_group = '.$this->rootID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user