From e2378184e934c67ea15fc144759a99d09fb5916a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 6 Apr 2011 14:18:27 +0000 Subject: [PATCH] Upated handling of templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20660 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/ConfigManagement/class_ConfigManagement.inc | 1 + .../goto/admin/ConfigManagement/class_TemplateEngine.inc | 2 ++ 2 files changed, 3 insertions(+) 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(); -- 2.30.2