Fix for filtering common modules

This commit is contained in:
fbsanchez 2021-06-23 14:31:42 +02:00
parent be09c1c64d
commit 76fbf75572
1 changed files with 20 additions and 5 deletions

View File

@ -331,20 +331,35 @@ if (is_ajax()) {
(int) $data[1]
);
if ($id_agent === false) {
continue;
}
$mod = explode(' » ', $data[2]);
$module_name = $mod[1];
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 {
$id_agent = $data[0];
$module_name = $data[1];
}
if ($id_agent === false) {
continue;
}
try {
if (is_metaconsole() === true) {
$node = new Node($id_node);