Merge branch 'ent-2014-5152-autovalidacion-automatica-de-eventos-en-metaconsola-sin-tener-que-validarse' into 'develop'

[Server] Fixed event creation from alert server (use id_template_module instead id_template)

See merge request artica/pandorafms!1344
This commit is contained in:
vgilc 2018-03-06 11:10:25 +01:00
commit 9588ddeb1b
1 changed files with 5 additions and 1 deletions

View File

@ -1317,7 +1317,11 @@ sub pandora_execute_action ($$$$$$$$$;$) {
(defined ($agent) ? $agent->{'id_grupo'} : 0),
(defined ($fullagent) ? $fullagent->{'id_agente'} : 0),
$priority,
(defined($alert) ? $alert->{'id'} : 0),
(defined($alert)
? defined($alert->{'id_template_module'})
? $alert->{'id_template_module'}
: $alert->{'id'}
: 0),
(defined($alert) ? $alert->{'id_agent_module'} : 0),
$event_type,
0,