Code

Fixed department sorting
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Apr 2006 12:06:06 +0000 (12:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Apr 2006 12:06:06 +0000 (12:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3064 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_userManagement.inc

index da884aac227a0d69f16c3d7f2a8266a6bcd5c92a..703105dce84d45d4ecff54216a1047b6b0448259 100644 (file)
@@ -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);
   }