From de4836f53044cd0045678a54fe911f088bd2a927 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 16 May 2011 13:55:10 +0000 Subject: [PATCH] Fixed Problem with item saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../newConfigManagement/class_newConfigManagement.inc | 8 ++++++-- 1 file changed, 6 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 deb9eee33..88dbd211f 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -878,11 +878,15 @@ class newConfigManagement extends plugin // 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. -- 2.30.2