From: hickert Date: Wed, 19 Apr 2006 12:06:06 +0000 (+0000) Subject: Fixed department sorting X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa713f82f160f42a5b56ec420cdbd36ea9ed4467;p=gosa.git Fixed department sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3064 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index da884aac2..703105dce 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -1104,9 +1104,6 @@ class userManagement extends plugin $deps= get_list("(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))", $this->ui->subtreeACL, $dep_base, array("ou", "description"), GL_SIZELIMIT | GL_CONVERT); - /* sort deparmtents */ - natcasesort($deps); - /* Append deparments to class var and if available add description */ foreach($deps as $value){ if(isset($value['description'][0])){ @@ -1116,6 +1113,7 @@ class userManagement extends plugin } } + natcasesort($this->departments); }