Merge branch 'ent-7912-12337-Fallo-filtrado-Tree-view-widget-en-Dashboards' into 'develop'

Ent 7912 12337 fallo filtrado tree view widget en dashboards

See merge request artica/pandorafms!4503
This commit is contained in:
Daniel Rodriguez 2021-11-16 13:15:47 +00:00
commit 5264f39065
1 changed files with 6 additions and 0 deletions

View File

@ -895,9 +895,15 @@ class Tree
protected function processAgents(&$agents, $server=false)
{
if (!empty($agents)) {
$agents_aux = [];
foreach ($agents as $iterator => $agent) {
$this->processAgent($agents[$iterator], $server);
if ($agents[$iterator]['counters']['total'] !== '0') {
$agents_aux[] = $agents[$iterator];
}
}
$agents = $agents_aux;
}
}