Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_ServiceAddDialog.inc
index a5a284e68dc4405c5841d2818a36a7dec75cad2d..47e97012d8964f9281254dca8a3b9490ccf47906 100644 (file)
@@ -10,7 +10,7 @@ class ServiceAddDialog extends plugin{
   var $objectclasses    = array();
   var $parent           = NULL;
 
-  function ServiceAddDialog($config,$dn,$parent)
+  function ServiceAddDialog(&$config,$dn,$parent)
   {
     plugin::plugin($config);
     $this->parent = $parent;
@@ -19,7 +19,9 @@ class ServiceAddDialog extends plugin{
   function execute()
   {
     $smarty = get_smarty();
-    $smarty->assign("Services",$this->parent->getAllUnusedServices());
+    $services = $this->parent->getAllUnusedServices();
+    natcasesort($services);
+    $smarty->assign("Services",$services);
     return($smarty->fetch(get_template_path("ServiceAddDialog.tpl", TRUE,dirname(__FILE__))));
  }