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:
commit
5264f39065
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue