From: cajus Date: Mon, 21 May 2007 12:29:02 +0000 (+0000) Subject: Added sorting X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8e1f2600a64dc49e89321668822838a366f8bb34;p=gosa.git Added sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6423 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){