Code

Updated itemSelector
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Oct 2010 07:21:44 +0000 (07:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Oct 2010 07:21:44 +0000 (07:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20146 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc

index 3e932d53c78ea6ff05e1884534f1157452bf2620..da2fd12f971ec6fae99fe6bb75e864e0f1ed2587 100644 (file)
@@ -187,11 +187,8 @@ class newConfigManagement extends plugin
     {
         $data = $this->dataModel->getItemByPath($this->selectedContainer);
         $res = array();
-        $res[""]=array("name" => "/", "desc" => "ROOT");
-        $res["/root"]= array("name" => "root", "desc" => "TIMMAY");
-#       $res["/root/test"]="test";
-#       $res["/root/test/timmay"]="tim";
-#       $res["/ad"]= "ad";
+        $res[""] = array("name" => "/", "desc" => "");
+        $res = array_merge($res,$this->__recurseItem($data, array('Component')));
         return($res);
 
 
@@ -210,7 +207,8 @@ class newConfigManagement extends plugin
     function getContainerList()
     {
         $data = $this->dataModel->getItemByPath('/root');
-        $res["/root"] = "/";
+        $res = array();
+        $res["/root"] = array("name" => "/", "desc" => "");
         $res = array_merge($res,$this->__recurseItem($data, array('Distribution','Release')));
         return($res);
     }