From: hickert Date: Wed, 27 Apr 2011 13:15:32 +0000 (+0000) Subject: Updated item config X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=776c00ab813414f7d7b7da39e7106cbe758a09c2;p=gosa.git Updated item config git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20775 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 48d81fba3..d3efd9651 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -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); }