diff --git a/plugins/admin/systems/class_ServiceAddDialog.inc b/plugins/admin/systems/class_ServiceAddDialog.inc
index a5a284e68dc4405c5841d2818a36a7dec75cad2d..47e97012d8964f9281254dca8a3b9490ccf47906 100644 (file)
var $objectclasses = array();
var $parent = NULL;
- function ServiceAddDialog($config,$dn,$parent)
+ function ServiceAddDialog(&$config,$dn,$parent)
{
plugin::plugin($config);
$this->parent = $parent;
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__))));
}