Merge branch 'ent-5733-bug-agent-alerts-list' into 'develop'

Fixed agent aler list

See merge request artica/pandorafms!3177
This commit is contained in:
Daniel Rodriguez 2020-04-21 18:12:49 +02:00
commit 59fc1f334f
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 = '';