Fix for filtering common modules
This commit is contained in:
parent
be09c1c64d
commit
76fbf75572
|
@ -331,20 +331,35 @@ if (is_ajax()) {
|
||||||
(int) $data[1]
|
(int) $data[1]
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($id_agent === false) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$mod = explode(' » ', $data[2]);
|
$mod = explode(' » ', $data[2]);
|
||||||
$module_name = $mod[1];
|
$module_name = $mod[1];
|
||||||
if (empty($module_name) === true) {
|
if (empty($module_name) === true) {
|
||||||
$module_name = $data[2];
|
// Common modules.
|
||||||
|
$id_agent = db_get_value(
|
||||||
|
'id_tagente',
|
||||||
|
'tmetaconsole_agent',
|
||||||
|
'id_agente',
|
||||||
|
(int) $data[0]
|
||||||
|
);
|
||||||
|
|
||||||
|
$id_node = db_get_value(
|
||||||
|
'id_tmetaconsole_setup',
|
||||||
|
'tmetaconsole_agent',
|
||||||
|
'id_agente',
|
||||||
|
(int) $data[0]
|
||||||
|
);
|
||||||
|
|
||||||
|
$module_name = $data[1];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$id_agent = $data[0];
|
$id_agent = $data[0];
|
||||||
$module_name = $data[1];
|
$module_name = $data[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($id_agent === false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
$node = new Node($id_node);
|
$node = new Node($id_node);
|
||||||
|
|
Loading…
Reference in New Issue