From: hickert Date: Tue, 19 Apr 2011 12:38:01 +0000 (+0000) Subject: Updated saving of items X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c762a33aebe86e07c4827a28bf70d7b93960accf;p=gosa.git Updated saving of items git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20749 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 ded80c4ce..8ef7d6a9e 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -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{