Merge branch '2932-Bug-al-crear-un-evento-por-medio-de-la-API-no-te-inserta-el-campo-agent-name' into 'develop'

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

See merge request artica/pandorafms!1877
This commit is contained in:
vgilc 2018-10-25 10:33:06 +02:00
commit 6ab39aa728
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;