Merge branch 'ent-10000-error-500-en-llamada-api-tree_agents' into 'develop'
Ent 10000 error 500 en llamada api tree agents See merge request artica/pandorafms!5325
This commit is contained in:
commit
30eac6dc6e
|
@ -1016,9 +1016,9 @@ function api_get_tree_agents($trash1, $trahs2, $other, $returnType)
|
|||
$groups = [];
|
||||
}
|
||||
|
||||
$groups = str_replace('\n', $returnReplace, $groups);
|
||||
|
||||
foreach ($groups as &$group) {
|
||||
$group = str_replace('\n', $returnReplace, $group);
|
||||
|
||||
$group['type_row'] = 'group';
|
||||
$returnVar[] = $group;
|
||||
|
||||
|
@ -1034,9 +1034,9 @@ function api_get_tree_agents($trash1, $trahs2, $other, $returnType)
|
|||
$agents = [];
|
||||
}
|
||||
|
||||
$agents = str_replace('\n', $returnReplace, $agents);
|
||||
|
||||
foreach ($agents as $index => &$agent) {
|
||||
$agent = str_replace('\n', $returnReplace, $agent);
|
||||
|
||||
$agent['type_row'] = 'agent';
|
||||
$returnVar[] = $agent;
|
||||
|
||||
|
@ -1063,9 +1063,9 @@ function api_get_tree_agents($trash1, $trahs2, $other, $returnType)
|
|||
$modules = [];
|
||||
}
|
||||
|
||||
$modules = str_replace('\n', $returnReplace, $modules);
|
||||
|
||||
foreach ($modules as &$module) {
|
||||
$module = str_replace('\n', $returnReplace, $module);
|
||||
|
||||
$module['type_row'] = 'module';
|
||||
|
||||
if ($module['module_macros']) {
|
||||
|
@ -1097,9 +1097,8 @@ function api_get_tree_agents($trash1, $trahs2, $other, $returnType)
|
|||
$alerts = [];
|
||||
}
|
||||
|
||||
$alerts = str_replace('\n', $returnReplace, $alerts);
|
||||
|
||||
foreach ($alerts as &$alert) {
|
||||
$alert = str_replace('\n', $returnReplace, $alert);
|
||||
$alert['type_row'] = 'alert';
|
||||
$returnVar[] = $alert;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue