2013-11-06 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2013-11-06 12:17:09 +00:00
parent 7cdb532844
commit b2652d8750
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-11-06 Sergio Martin <sergio.martin@artica.es>
* include/functions_api.php: Fix create event typo
errors in api. Fix sent by tomas in incident #347
2013-11-06 Sergio Martin <sergio.martin@artica.es>
* include/constants.php

View File

@ -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']);