Code

Fixed template engine problems
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Apr 2011 15:36:58 +0000 (15:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Apr 2011 15:36:58 +0000 (15:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20724 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index b774c88d85dd86dd44fb960e3a2568d9bc7257dc..2a289f7333ca83333acb0f4959f7f33b88600a8a 100644 (file)
@@ -491,6 +491,7 @@ class newConfigManagement extends plugin
                 $this->dataModel->setItemValues($item['path'], $item['values']);
             }
 
+            $this->TemplateEngine->load($this->itemConfig);
             $this->TemplateEngine->setTemplate($method.".tpl");
             $this->TemplateEngine->setValues($item['type'],$item['values']['itemValues']);
             $this->listing->setDialogObject($this->TemplateEngine);
@@ -504,6 +505,7 @@ class newConfigManagement extends plugin
     function newEntry($type)
     {
         // We've to add a config item
+        $this->TemplateEngine->load($this->itemConfig);
         if(isset($this->cfgItemMap[$type])){
             $method = $this->cfgItemMap[$type];
             $this->TemplateEngine->setTemplate($method.".tpl");