diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 60937971..e797acde 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -87,7 +87,7 @@ abstract class baseModule { public function __construct($scope) { $this->scope = $scope; // load configuration - if ($this->can_manage()) { + if ($this->can_manage() || ($scope == 'none')) { if (isset($_SESSION['config'])) $this->moduleSettings = $_SESSION['config']->get_moduleSettings(); if (isset($_SESSION['selfServiceProfile'])) $this->selfServiceSettings = $_SESSION['selfServiceProfile']; // initialize module diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php index 3a38eae0..4bf0d7d4 100644 --- a/lam/templates/config/moduleSettings.php +++ b/lam/templates/config/moduleSettings.php @@ -223,7 +223,7 @@ for ($i = 0; $i < sizeof($modules); $i++) { $icon = '' . $iconImage . ' '; } echo "$icon" . getModuleAlias($modules[$i], "none") . "\n"; - $configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, false, $tabindex, 'user'); + $configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, false, $tabindex, 'none'); $_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']); echo "\n"; echo "
"; @@ -242,7 +242,7 @@ $cancelButton = new htmlButton('cancelSettings', _('Cancel')); $cancelButton->setIconClass('cancelButton'); $buttonContainer->addElement($cancelButton, true); $buttonContainer->addElement(new htmlSpacer(null, '10px'), true); -parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); +parseHtml(null, $buttonContainer, array(), false, $tabindex, 'none'); if ((sizeof($errorsToDisplay) == 0) && isset($_POST['scrollPositionTop']) && isset($_POST['scrollPositionLeft'])) { // scroll to last position