From cd60b57199d80c0610668e814b252572b93b87cd Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 11 Apr 2008 14:02:53 +0000 Subject: [PATCH] Fixed sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10367 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_SelectDeviceType.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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")); } -- 2.30.2