From: hickert Date: Mon, 16 May 2011 13:55:10 +0000 (+0000) Subject: Fixed Problem with item saving X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de4836f53044cd0045678a54fe911f088bd2a927;p=gosa.git Fixed Problem with item saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20838 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 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.