Fixed agent aler list

This commit is contained in:
Luis Calvo 2020-04-21 16:02:36 +02:00
parent f8b4e9ae4e
commit d44aa7b1e1
1 changed files with 4 additions and 0 deletions

View File

@ -310,6 +310,10 @@ function agents_get_alerts_simple($id_agent=false, $filter='', $options=false, $
$subQuery = 'SELECT id_agente_modulo
FROM tagente_modulo WHERE delete_pending = 0';
}
// Filter by agents id.
$id_agents_list = implode(',', $id_agent);
$subQuery .= ' AND id_agente in ('.$id_agents_list.')';
} else if ($id_agent === false || empty($id_agent)) {
if ($allModules) {
$disabled = '';