summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2790157)
raw | patch | inline | side by side (parent: 2790157)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Apr 2011 15:57:26 +0000 (15:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Apr 2011 15:57:26 +0000 (15:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20762 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateEngine.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateEngine.inc
index e81fe3eb24005a005e18c2319a6023696035610c..a1dcbf40b72ab0c256a4d737dd9836b5c65cc830 100644 (file)
function save_object()
{
foreach($this->widgets as $widget){
- $widget->save_object();
+ if($widget->isEnabled()){
+ $widget->save_object();
+ }
}
}
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc
index 190d9c7ee937ea8c27388a73808a49206e024be1..bc66f8f0a929ae6a1315734b931418d0e14a9a17 100644 (file)
$this->enabled = $bool;
}
+
+ /*! \brief Returns the enable status.
+ */
+ function isEnabled()
+ {
+ return($this->enabled);
+ }
+
/*! \brief Returns the display-name for the current widget.
* @return String The display-name for the widget, this
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index 21d6bd22bc7900cb5e630ca82bad1dd0511f61d3..862b096f0172a9699f85b26851328a15d0bf908c 100644 (file)
'type' => 'combobox', 'display' => _('Distribution type'),
'values' => array("deb" => 'deb', "rpm" => 'rpm'), 'initiallyEditableOnly' => TRUE);
$dOpt3 = array('description' => _('Mirror Url'), 'default' => '', 'value' => '', 'required' => false,
- 'type' => 'string', 'display' => _('Mirror Url'));
+ 'type' => 'string', 'display' => _('Mirror Url'),
+ 'initiallyEditableOnly' => TRUE);
$dOpt4 = array('description' => _('Method'), 'default' => 'puppet', 'value' => 'puppet', 'required' => false,
- 'type' => 'combobox', 'display' => _('Installation method'), 'values'=>array('puppet'=>_('Puppet')));
+ 'type' => 'combobox', 'display' => _('Installation method'), 'values'=>array('puppet'=>_('Puppet')),
+ 'initiallyEditableOnly' => TRUE);
$dOpt5 = array('description' => _('Architecture'), 'default' => '', 'value' => '', 'required' => false,
'type' => 'list', 'display' => _('Architecture'));
$dOpt6 = array('description' => _('Component'), 'default' => '', 'value' => '', 'required' => false,
- 'type' => 'list', 'display' => _('Component'), 'initiallyEditableOnly' => TRUE);
+ 'type' => 'list', 'display' => _('Component'));
$dOpt7 = array('description' => _('Mirror sources'), 'default' => '', 'value' => '', 'required' => false,
'type' => 'checkbox', 'display' => _('Mirror sources'));
// Load distributions
$rpc = $this->config->getRpcHandle();
$res = $rpc->getDistributions();
- print_a($res);
if(!$rpc->success()){
$this->errorMessage = sprintf(_("Failed to load distributions: %s"), $rpc->get_error());
return(FALSE);