diff options
author | Simon Rettberg | 2017-11-03 17:51:26 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-03 17:51:26 +0100 |
commit | b82ea6a851568854cfac0c18d457c2db33409d00 (patch) | |
tree | 2d53399cab1c231dc95f3fc3b3ebbfdbeeacc35b /modules-available/sysconfig | |
parent | [rebootcontrol] Conditional rebuild of config.tgz, proper permissions for aut... (diff) | |
download | slx-admin-b82ea6a851568854cfac0c18d457c2db33409d00.tar.gz slx-admin-b82ea6a851568854cfac0c18d457c2db33409d00.tar.xz slx-admin-b82ea6a851568854cfac0c18d457c2db33409d00.zip |
[sysconfig] Fix selection of "none from this group" (add/edit config)
Diffstat (limited to 'modules-available/sysconfig')
-rw-r--r-- | modules-available/sysconfig/addconfig.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/sysconfig/addconfig.inc.php b/modules-available/sysconfig/addconfig.inc.php index 34a46d52..f66bc508 100644 --- a/modules-available/sysconfig/addconfig.inc.php +++ b/modules-available/sysconfig/addconfig.inc.php @@ -21,7 +21,7 @@ abstract class AddConfig_Base /** * - * @param type $step + * @param string $step * @return \AddConfig_Base */ public static function setStep($step) @@ -161,10 +161,11 @@ class AddConfig_Start extends AddConfig_Base } else { $title = ''; } + $dummy = 0; foreach ($modGroups as &$mod) { if (!empty($mod['modules']) && $mod['unique']) { array_unshift($mod['modules'], array( - 'moduleid' => 0, + 'moduleid' => 'x' . (++$dummy), 'title' => Dictionary::translate('lang_noModuleFromThisGroup'), )); } |