From c762a33aebe86e07c4827a28bf70d7b93960accf Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 19 Apr 2011 12:38:01 +0000 Subject: [PATCH] Updated saving of items git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20749 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/newConfigManagement/class_newConfigManagement.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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{ -- 2.30.2