Merge branch 'ent-3683-entities-appear-on-event-comment-api-call' into 'develop'
Removed unnecesary io_safe_inpunt on from functions_api.php See merge request artica/pandorafms!2256 Former-commit-id: 870cdc2ea85241945628ac4a41864a0d54a57bea
This commit is contained in:
commit
351b7218ee
|
@ -11615,7 +11615,9 @@ function api_set_add_event_comment($id, $thrash2, $other, $thrash3)
|
|||
global $config;
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
return;
|
||||
$meta = true;
|
||||
} else {
|
||||
$meta = $other['data'][1];
|
||||
}
|
||||
|
||||
if (!check_acl($config['id_user'], 0, 'EW')) {
|
||||
|
@ -11627,8 +11629,7 @@ function api_set_add_event_comment($id, $thrash2, $other, $thrash3)
|
|||
returnError('error_parameter', 'Error in the parameters.');
|
||||
return;
|
||||
} else if ($other['type'] == 'array') {
|
||||
$comment = io_safe_input($other['data'][0]);
|
||||
$meta = $other['data'][1];
|
||||
$comment = $other['data'][0];
|
||||
$history = $other['data'][2];
|
||||
|
||||
$status = events_comment(
|
||||
|
|
Loading…
Reference in New Issue