fixed bug: calling api method create event not inserting agent name

This commit is contained in:
alejandro-campos 2018-10-22 10:31:10 +02:00
parent 14419759b0
commit aaa2c6aa10
1 changed files with 3 additions and 0 deletions

View File

@ -9523,8 +9523,11 @@ function api_set_create_event($id, $trash1, $other, $returnType) {
return;
}
$id_agent = $agent_cache['id_tagente'];
}
$values['id_agente'] = $id_agent;
if (!util_api_check_agent_and_print_error($id_agent, 'string', 'AR')) {
if (is_metaconsole()) metaconsole_restore_db();
return;