Code

Updated item config
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Apr 2011 13:15:32 +0000 (13:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Apr 2011 13:15:32 +0000 (13:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20775 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc

index 48d81fba3ba51101d2293455f5119f215f3c8095..d3efd96514ed3ab25751d363d74c427c9a06a51d 100644 (file)
@@ -576,15 +576,16 @@ class newConfigManagement extends plugin
         }
     }
 
+
+    /*! \brief  Returns a list of used item names for a given path.
+     */
     function getUsedNamesForPath($path)
     {
         $item = $this->dataModel->getItemByPath($path);
-
         $names = array();
         foreach($item['children'] as $path => $data){
             $names[] = $data['name'];
         }
-        echo "Fix getUsedNamesForPath it should depend on the type, edit/create and the edited item!";
         return($names);
     }
 
@@ -726,8 +727,12 @@ class newConfigManagement extends plugin
 
             // Get used item names for the current path
             if($this->currentObject){
+    
+                // Get used item names in the parent path.
                 $usedNames = $this->getUsedNamesForPath($this->currentObject['parentPath']);
             }else{
+
+                // Get used items for the selected path.
                 $usedNames = $this->getUsedNamesForPath($this->selectedContainer);
             }