mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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) {
|
foreach ($groups as $iterator => $group) {
|
||||||
$data = reporting_get_group_stats($group['id_grupo']);
|
$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'] = array();
|
||||||
|
|
||||||
$groups[$iterator]['counters']['unknown'] = $data['agents_unknown'];
|
$groups[$iterator]['counters']['unknown'] = $data['agents_unknown'];
|
||||||
@ -184,6 +186,7 @@ class Tree {
|
|||||||
$temp['id'] = $item['id'];
|
$temp['id'] = $item['id'];
|
||||||
$temp['type'] = $item['type'];
|
$temp['type'] = $item['type'];
|
||||||
$temp['name'] = $item['name'];
|
$temp['name'] = $item['name'];
|
||||||
|
$temp['icon'] = $item['icon'];
|
||||||
$temp['status'] = $item['status'];
|
$temp['status'] = $item['status'];
|
||||||
switch ($this->countAgentStatusMethod) {
|
switch ($this->countAgentStatusMethod) {
|
||||||
case 'on_demand':
|
case 'on_demand':
|
||||||
|
@ -401,12 +401,16 @@ function groups_get_icon ($id_group) {
|
|||||||
function groups_get_all($groupWithAgents = false) {
|
function groups_get_all($groupWithAgents = false) {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$sql = 'SELECT id_grupo, nombre FROM tgrupo';
|
$sql = 'SELECT id_grupo, nombre
|
||||||
|
FROM tgrupo';
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if ($groupWithAgents)
|
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']) {
|
switch ($config['dbtype']) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user