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:
vgilc 2012-01-10 13:56:40 +00:00
parent bf4f81e680
commit 3fcfa44464
4 changed files with 11 additions and 5 deletions

View File

@ -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.

View File

@ -286,7 +286,7 @@ if(!empty($groups)) {
}
}
}
$tabulation = str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $group['deep']);
if ($group['id_grupo'] == 0) {

View File

@ -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);

View File

@ -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'].'&nbsp;&nbsp;&nbsp;';
}