From 1883fe086fa31761420fc85285933d474a51ca5d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 25 Nov 2012 10:55:54 +0000 Subject: [PATCH] allow buttons in module settings --- lam/templates/config/moduleSettings.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php index 727d61ea..733049b5 100644 --- a/lam/templates/config/moduleSettings.php +++ b/lam/templates/config/moduleSettings.php @@ -219,8 +219,8 @@ for ($i = 0; $i < sizeof($modules); $i++) { if ($iconImage != null) { $icon = '' . $iconImage . ' '; } - echo "$icon" . getModuleAlias($modules[$i], "none") . "\n"; - $configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, true, $tabindex, 'user'); + echo "$icon" . getModuleAlias($modules[$i], "none") . "\n"; + $configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, false, $tabindex, 'user'); $_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']); echo "\n"; echo "
"; @@ -272,6 +272,10 @@ function checkInput() { elseif ($_SESSION['conf_types'][$element] == "text_obfuscated") { $options[$element] = array(obfuscateText($_POST[$element])); } + // hidden fields + elseif ($_SESSION['conf_types'][$element] == "hidden") { + $options[$element] = array($_POST[$element]); + } // checkboxes elseif ($_SESSION['conf_types'][$element] == "checkbox") { if (isset($_POST[$element]) && ($_POST[$element] == "on")) $options[$element] = array('true');