From 776c00ab813414f7d7b7da39e7106cbe758a09c2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Apr 2011 13:15:32 +0000 Subject: [PATCH] Updated item config git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20775 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../newConfigManagement/class_newConfigManagement.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); } -- 2.30.2