Code

Udpated item config saving
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Apr 2011 12:56:40 +0000 (12:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Apr 2011 12:56:40 +0000 (12:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20732 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc

index fe3126be22bf0218f20d1afe0745dc9adf45dc68..a0d5cf78e3d3e59d98e29c525767f28070072650 100644 (file)
@@ -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();
                 }
             }