2013-11-07 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the validate event with the new validation form. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9032 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
aa608bffae
commit
a1822102db
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-07 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_api.php: fixed the validate event with the
|
||||||
|
new validation form.
|
||||||
|
|
||||||
2013-11-07 Ramon Novoa <rnovoa@artica.es>
|
2013-11-07 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/modificar_agente.php: Fixed a duplicated id.
|
* godmode/agentes/modificar_agente.php: Fixed a duplicated id.
|
||||||
|
|
|
@ -5176,10 +5176,16 @@ function api_set_validate_events($id_event, $trash1, $other, $return_type, $user
|
||||||
$event = events_get_event ($id_event);
|
$event = events_get_event ($id_event);
|
||||||
alerts_agent_module_standby ($event['id_alert_am'], 0);
|
alerts_agent_module_standby ($event['id_alert_am'], 0);
|
||||||
|
|
||||||
$result = events_validate_event ($id_event, false, $text);
|
$result = events_validate_event ($id_event, false, 1);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
returnData('string', array('type' => 'string', 'data' => 'Correct validation'));
|
if (!empty($text)) {
|
||||||
|
//Set the comment for the validation
|
||||||
|
events_comment($id_event, $text);
|
||||||
|
}
|
||||||
|
|
||||||
|
returnData('string',
|
||||||
|
array('type' => 'string', 'data' => 'Correct validation'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
returnError('Error in validation operation.');
|
returnError('Error in validation operation.');
|
||||||
|
|
Loading…
Reference in New Issue