From: hickert Date: Thu, 14 Apr 2011 12:56:40 +0000 (+0000) Subject: Udpated item config saving X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9eef2e1f68ceafbeba15d1cfc52a9a93d62ac3c8;p=gosa.git Udpated item config saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20732 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 fe3126be2..a0d5cf78e 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -595,7 +595,7 @@ class newConfigManagement extends plugin $this->listing->clearDialogObject(); } }else{ - + // Write the modifications back to the server. $rpc = $this->config->getRpcHandle(); $res = $rpc->setConfigItem($release, $oldItemPath, $type, $values); @@ -605,9 +605,10 @@ class newConfigManagement extends plugin }else{ // Update the data model - $item['values'] = $values; - $this->dataModel->setItemValues($item['path'], $item['values']); - $this->dataModel->moveItem($oldPath, $newPath); + $this->dataModel->setItemValues($oldPath, $values); + if($oldPath != $newPath){ + $this->dataModel->moveItem($oldPath, $newPath); + } $this->listing->clearDialogObject(); } }