mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
2012-01-10 Vanessa Gil <vanessa.gil@artica.es>
* operation/agentes/group_view.php include/functions_group.php: Improve display for group view. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
89c224af45
commit
b76fb39f39
@ -1,3 +1,8 @@
|
|||||||
|
2012-01-10 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
* operation/agentes/group_view.php
|
||||||
|
include/functions_group.php: Improve display for
|
||||||
|
group view.
|
||||||
|
|
||||||
2012-01-10 Vanessa Gil <vanessa.gil@artica.es>
|
2012-01-10 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
* godmode/agentes/planned_downtime.php: fixed error in
|
* godmode/agentes/planned_downtime.php: fixed error in
|
||||||
planned downtime.
|
planned downtime.
|
||||||
|
@ -624,8 +624,8 @@ function groups_get_group_row($id_group, $group_all, $group, &$printed_groups) {
|
|||||||
// Store printed group to not print it again
|
// Store printed group to not print it again
|
||||||
$printed_groups[$id_group] = 1;
|
$printed_groups[$id_group] = 1;
|
||||||
|
|
||||||
if ($id_group < 1)
|
if ($id_group < 0)
|
||||||
return; // Skip group 0
|
return;
|
||||||
|
|
||||||
// Get stats for this group
|
// Get stats for this group
|
||||||
$data = reporting_get_group_stats($id_group);
|
$data = reporting_get_group_stats($id_group);
|
||||||
|
@ -50,7 +50,8 @@ $groups_full = users_get_groups ($config['id_user'], "AR", true, true);
|
|||||||
$groups = array();
|
$groups = array();
|
||||||
foreach($groups_full as $group) {
|
foreach($groups_full as $group) {
|
||||||
$groups[$group['id_grupo']]['name'] = $group['nombre'];
|
$groups[$group['id_grupo']]['name'] = $group['nombre'];
|
||||||
if($group['parent'] != 0) {
|
|
||||||
|
if($group['id_grupo'] != 0) {
|
||||||
$groups[$group['parent']]['childs'][] = $group['id_grupo'];
|
$groups[$group['parent']]['childs'][] = $group['id_grupo'];
|
||||||
$groups[$group['id_grupo']]['prefix'] = $groups[$group['parent']]['prefix'].' ';
|
$groups[$group['id_grupo']]['prefix'] = $groups[$group['parent']]['prefix'].' ';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user