From: hickert Date: Wed, 6 Apr 2011 14:18:27 +0000 (+0000) Subject: Upated handling of templates X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2378184e934c67ea15fc144759a99d09fb5916a;p=gosa.git Upated handling of templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20660 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc b/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc index 5f0c18ca7..af9bbf554 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_ConfigManagement.inc @@ -65,6 +65,7 @@ class ConfigManagement extends management // Try to initialize $this->init(); + $this->setInstallMethod('puppet'); $this->rebuildListing(); } diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateEngine.inc b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateEngine.inc index 577079f29..f6d7c961f 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateEngine.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateEngine.inc @@ -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();