Code

Updated saving of items
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Apr 2011 12:38:01 +0000 (12:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Apr 2011 12:38:01 +0000 (12:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20749 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index ded80c4ce792b4dc5d3745558e5fdec93d399884..8ef7d6a9edb3d86da2cdd61418c0039d1288c86a 100644 (file)
@@ -704,7 +704,7 @@ class newConfigManagement extends plugin
         if($this->cfgItemMap[$type] != 'root'){
 
             // Get paths 
-            $release = preg_replace("/^.*\//","", $this->getReleasePath($this->selectedContainer));
+            $release =  $this->getReleasePart($this->selectedContainer);
             $newPath = $this->selectedContainer."/".$values['name'];
             $newItemPath = $this->getItemPath($this->selectedContainer)."/".$values['name'];
             if($item){
@@ -717,9 +717,10 @@ class newConfigManagement extends plugin
 
                 // Add the new item
                 $rpc = $this->config->getRpcHandle();
+                print_a(array($release, $newItemPath, $type, $values));
                 $res = $rpc->setConfigItem($release, $newItemPath, $type, $values);
                 if(!$rpc->success()){
-                    msg_dialog::display(_("Error"), sprintf(_("Failed to load distributions: %s"), $rpc->get_error()),ERROR_DIALOG);
+                    msg_dialog::display(_("Error"), sprintf(_("Failed to save %s: %s"),$type, $rpc->get_error()),ERROR_DIALOG);
                     return(NULL);
                 }else{