Uploaded lost changes from the last day
This commit is contained in:
parent
fa475c38f4
commit
41ed17cfe2
|
@ -94,6 +94,8 @@ class Tree {
|
|||
foreach ($groups as $iterator => $group) {
|
||||
$data = reporting_get_group_stats($group['id_grupo']);
|
||||
|
||||
$groups[$iterator]['icon'] = groups_get_icon($group['id_grupo']) . '.png';
|
||||
|
||||
$groups[$iterator]['counters'] = array();
|
||||
|
||||
$groups[$iterator]['counters']['unknown'] = $data['agents_unknown'];
|
||||
|
@ -184,6 +186,7 @@ class Tree {
|
|||
$temp['id'] = $item['id'];
|
||||
$temp['type'] = $item['type'];
|
||||
$temp['name'] = $item['name'];
|
||||
$temp['icon'] = $item['icon'];
|
||||
$temp['status'] = $item['status'];
|
||||
switch ($this->countAgentStatusMethod) {
|
||||
case 'on_demand':
|
||||
|
|
|
@ -401,12 +401,16 @@ function groups_get_icon ($id_group) {
|
|||
function groups_get_all($groupWithAgents = false) {
|
||||
global $config;
|
||||
|
||||
$sql = 'SELECT id_grupo, nombre FROM tgrupo';
|
||||
$sql = 'SELECT id_grupo, nombre
|
||||
FROM tgrupo';
|
||||
|
||||
global $config;
|
||||
|
||||
if ($groupWithAgents)
|
||||
$sql .= ' WHERE id_grupo IN (SELECT id_grupo FROM tagente GROUP BY id_grupo)';
|
||||
$sql .= ' WHERE id_grupo IN (
|
||||
SELECT id_grupo
|
||||
FROM tagente
|
||||
GROUP BY id_grupo)';
|
||||
|
||||
switch ($config['dbtype']) {
|
||||
case "mysql":
|
||||
|
|
Loading…
Reference in New Issue