Merge branch 'ent-10645-15201-peticion-de-cambio-get_events' into 'develop'

Ent 10645 15201 peticion de cambio get events

See merge request artica/pandorafms!5824
This commit is contained in:
Rafael Ameijeiras 2023-07-12 07:26:15 +00:00
commit 9084df382b
1 changed files with 5 additions and 0 deletions

View File

@ -11546,6 +11546,11 @@ function api_get_events($node_id, $trash2, $other, $returnType)
}
}
// Add agent name to nodo.
if (is_metaconsole() === false && empty($row['id_agente']) === false) {
$row['agent_name'] = agents_get_name($row['id_agente']);
}
// FOR THE TEST THE API IN THE ANDROID.
$row['description_event'] = events_print_type_description($row['event_type'], true);
$row['img_description'] = events_print_type_img($row['event_type'], true, true);