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
bf4f81e680
commit
3fcfa44464
|
@ -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>
|
||||
* godmode/agentes/planned_downtime.php: fixed error in
|
||||
planned downtime.
|
||||
|
|
|
@ -286,7 +286,7 @@ if(!empty($groups)) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$tabulation = str_repeat(' ', $group['deep']);
|
||||
|
||||
if ($group['id_grupo'] == 0) {
|
||||
|
|
|
@ -623,9 +623,9 @@ function groups_get_group_row($id_group, $group_all, $group, &$printed_groups) {
|
|||
|
||||
// Store printed group to not print it again
|
||||
$printed_groups[$id_group] = 1;
|
||||
|
||||
if ($id_group < 1)
|
||||
return; // Skip group 0
|
||||
|
||||
if ($id_group < 0)
|
||||
return;
|
||||
|
||||
// Get stats for this 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();
|
||||
foreach($groups_full as $group) {
|
||||
$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['id_grupo']]['prefix'] = $groups[$group['parent']]['prefix'].' ';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue