summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74d0a67)
raw | patch | inline | side by side (parent: 74d0a67)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Apr 2011 12:38:01 +0000 (12:38 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index ded80c4ce792b4dc5d3745558e5fdec93d399884..8ef7d6a9edb3d86da2cdd61418c0039d1288c86a 100644 (file)
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){
// 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{