From: cajus Date: Fri, 11 Apr 2008 14:02:53 +0000 (+0000) Subject: Fixed sorting X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd60b57199d80c0610668e814b252572b93b87cd;p=gosa.git Fixed sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10367 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc b/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc index 38ebc8dff..378d5beec 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc @@ -21,11 +21,13 @@ class SelectDeviceType extends plugin $ldap = $this->config->get_ldap_link(); $ldap->cd ($this->config->current['BASE']); $ldap->search("(&(objectClass=gosaGroupOfNames)(cn=*))",array("cn")); - $this->ObjectGroups['none']=_("none"); + $tmp= array(); while($attrs = $ldap->fetch()){ - $this->ObjectGroups[$attrs['dn']]= $attrs['cn'][0]; + $tmp[$attrs['dn']]= $attrs['cn'][0]; } - asort($this->ObjectGroups); + asort($tmp, SORT_LOCALE_STRING); + $tmpa['none']=_("none"); + $this->ObjectGroups= array_merge($tmpa, $tmp); $this->SystemTypes =array("workstation"=>_("Workstation"), "terminal"=>_("Terminal"), "server"=>_("Server")); }