From 8e1f2600a64dc49e89321668822838a366f8bb34 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 21 May 2007 12:29:02 +0000 Subject: [PATCH] Added sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6423 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 3 ++- plugins/admin/users/class_divListUsers.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/class_config.inc b/include/class_config.inc index e3d3635e0..e9b17448b 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -642,6 +642,7 @@ class config { $depth ++; /* Walk through array */ + ksort($arr); foreach($arr as $name => $entries){ /* If this department is the last in the current tree position @@ -662,7 +663,7 @@ class config { if(isset($entries['ENTRY'])){ $a = ""; for($i = 0 ; $i < $depth ; $i ++){ - $a.=" "; + $a.="."; } $ret[$entries['ENTRY']]=$a." ".$name; } diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc index 4aa5b410c..cca776319 100644 --- a/plugins/admin/users/class_divListUsers.inc +++ b/plugins/admin/users/class_divListUsers.inc @@ -97,6 +97,7 @@ class divListUsers extends MultiSelectWindow $ui= get_userinfo(); $tdeps= $ui->get_module_departments("users"); $ids = $this->config->idepartments; +print_a($ids); $first = ""; $found = FALSE; foreach($deps as $dep){ -- 2.30.2