summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8e2137)
raw | patch | inline | side by side (parent: f8e2137)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 May 2011 13:55:10 +0000 (13:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 May 2011 13:55:10 +0000 (13:55 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20838 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 deb9eee33e62234f522c52f42c2d8915bd105404..88dbd211f908f23e015add8907e9fb122c85720a 100644 (file)
// Get paths
$release = $this->getReleasePart($this->selectedContainer);
- $newPath = $this->selectedContainer."/".$values['name'];
- $newItemPath = $this->getItemPath($this->selectedContainer)."/".$values['name'];
+
if($item){
$oldPath = $item['path'];
$oldItemPath = $this->getItemPath($item['path']);
+ $newPath = $item['parentPath']."/".$values['name'];
+ $newItemPath = $this->getItemPath($newPath);
+ }else{
+ $newPath = $this->selectedContainer."/".$values['name'];
+ $newItemPath = $this->getItemPath($this->selectedContainer)."/".$values['name'];
}
// If this is a new item, then create it now.