summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5ca65e)
raw | patch | inline | side by side (parent: e5ca65e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Apr 2011 13:15:32 +0000 (13:15 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index 48d81fba3ba51101d2293455f5119f215f3c8095..d3efd96514ed3ab25751d363d74c427c9a06a51d 100644 (file)
}
}
+
+ /*! \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);
}
// 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);
}