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:
commit
6ab39aa728
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue