Code

Upated handling of templates
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Apr 2011 14:18:27 +0000 (14:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Apr 2011 14:18:27 +0000 (14:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20660 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc
gosa-plugins/goto/admin/ConfigManagement/class_TemplateEngine.inc

index 5f0c18ca7ccd17bfe8e89b96103b4d4e4ae3f927..af9bbf554e749387c87dc0d1c1f4785672e4045e 100644 (file)
@@ -65,6 +65,7 @@ class ConfigManagement extends management
         
         // Try to initialize
         $this->init();
+        $this->setInstallMethod('puppet');
         $this->rebuildListing();
     }
 
index 577079f2900e74385b019d679d3c995a55639889..f6d7c961fd0165e09e7e050dfeb230a843ba9e82 100644 (file)
@@ -84,6 +84,8 @@ class TemplateEngine
                 }
 
                 // Prepare the value for the widget 
+                if(!isset($values[$name])) $values[$name] = $item['default'];
+
                 $value = $values[$name];
                 $syntax = (isset($item['syntax']))? $item['syntax']: "";
                 $providedValues = (isset($item['values']))? $item['values']: array();