Merge branch 'ent-3380-Parametro-API--en-creacion-de-eventos-no-funciona-con-encoding-HTML-en-v730' into 'develop'

Fixed bug in functions_api

See merge request artica/pandorafms!2125

Former-commit-id: ee373ced704fd3162d6c72d9dd68aff2d5106674
This commit is contained in:
Manuel Montes 2019-01-15 17:03:55 +01:00
commit f485b2f436
1 changed files with 7 additions and 2 deletions

View File

@ -9774,6 +9774,11 @@ function api_set_create_event($id, $trash1, $other, $returnType) {
return;
}
$values['id_grupo'] = $other['data'][1];
if (groups_get_name($values['id_grupo']) === false) {
returnError('error_parameter', 'Group ID does not exist');
return;
}
}
else {
returnError('error_parameter', 'Group ID required.');
@ -10117,7 +10122,7 @@ function api_get_netflow_get_summary ($discard_1, $discard_2, $params) {
}
//http://localhost/pandora_console/include/api.php?op=set&op2=validate_event_by_id&id=23&apipass=1234&user=admin&pass=pandora
function api_set_validate_event_by_id ($id, $trash1, $trash2, $returnType) {
function api_set_validate_event_by_id ($id, $trash1 = null, $trash2 = null, $returnType = 'string') {
global $config;
$data['type'] = 'string';
$check_id = db_get_value('id_evento', 'tevento', 'id_evento', $id);