From b2652d8750c027623d78d699b90243a04d0d9741 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 6 Nov 2013 12:17:09 +0000 Subject: [PATCH] 2013-11-06 Sergio Martin * include/functions_api.php: Fix create event typo errors in api. Fix sent by tomas in incident #347 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9015 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d0fb215539..252a646a32 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-11-06 Sergio Martin + + * include/functions_api.php: Fix create event typo + errors in api. Fix sent by tomas in incident #347 + 2013-11-06 Sergio Martin * include/constants.php diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 6ac63d7125..5a7297ad3e 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -6223,7 +6223,7 @@ function api_set_create_event($id, $trash1, $other, $returnType) { $values['id_agentmodule'] = $other['data'][7]; } else { - $value['id_agentemodule'] = 0; + $value['id_agentmodule'] = 0; } if ($other['data'][8] != '') { @@ -6277,7 +6277,7 @@ function api_set_create_event($id, $trash1, $other, $returnType) { $return = events_create_event($values['event'], $values['id_grupo'], $values['id_agente'], $values['status'], $values['id_usuario'], $values['event_type'], - $values['priority'], $value['id_agentemodule'], $values['id_alert_am'], + $values['priority'], $values['id_agentmodule'], $values['id_alert_am'], $values['critical_instructions'], $values['warning_instructions'], $values['unknown_instructions'], $values['source'], $values['tags'], $values['custom_data']);