#10645 Add agent name to nodo

This commit is contained in:
Jorge Rincon 2023-05-04 08:11:15 +02:00
parent 5983333965
commit 46ae13b4f9
1 changed files with 6 additions and 1 deletions

View File

@ -11541,6 +11541,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);
@ -13101,7 +13106,7 @@ function api_set_create_event($id, $trash1, $other, $returnType)
) {
$values['status'] = 2;
}
api_set_validate_event_by_id($val['id_evento']);
}
}