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:
commit
59fc1f334f
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue