From 9eef2e1f68ceafbeba15d1cfc52a9a93d62ac3c8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 14 Apr 2011 12:56:40 +0000 Subject: [PATCH] Udpated item config saving git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20732 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../newConfigManagement/class_newConfigManagement.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); } } -- 2.30.2