From 6c564ff0336ecd7777814b2b0b2f14e261467bb2 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 14 Apr 2011 06:56:44 +0000 Subject: [PATCH] Fixed values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20726 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../newConfigManagement/class_newConfigManagement.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 6b40d05aa..3b9ccb04d 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -446,7 +446,7 @@ class newConfigManagement extends plugin $item = $this->dataModel->getItemById($ids[0]); // Is an config item. - if(isset($this->cfgItemMap[$item['type']])){ + if($this->cfgItemMap[$item['type']] != 'root'){ $release = preg_replace("/^.*\//","", $this->getReleasePath($item['path'])); $path = $this->getItemPath($item['path']); @@ -477,7 +477,7 @@ class newConfigManagement extends plugin if($this->cfgItemMap[$item['type']] != 'root'){ if($item['status'] == '-'){ $rpc = $this->config->getRpcHandle(); - $item['values']['itemValues'] = $rpc->getConfigItem($release, $path); + $item['values'] = $rpc->getConfigItem($release, $path); $this->dataModel->setItemStatus($item['path'], 'fetched'); $this->dataModel->setItemValues($item['path'], $item['values']); } @@ -485,7 +485,7 @@ class newConfigManagement extends plugin $this->TemplateEngine->load($this->itemConfig); $this->TemplateEngine->setTemplate($method.".tpl"); - $this->TemplateEngine->setValues($item['type'],$item['values']['itemValues']); + $this->TemplateEngine->setValues($item['type'],$item['values']); $this->listing->setDialogObject($this->TemplateEngine); $this->currentObject = $item; } @@ -604,7 +604,7 @@ class newConfigManagement extends plugin }else{ // Update the data model - $item['values']['itemValues'] = $values; + $item['values'] = $values; $this->dataModel->setItemValues($item['path'], $item['values']); $this->listing->clearDialogObject(); } -- 2.30.2