Fixed wrong default values in UserGroupOptionForm
authorMarcel Werk <burntime@woltlab.com>
Fri, 15 May 2015 16:43:52 +0000 (18:43 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 15 May 2015 16:43:52 +0000 (18:43 +0200)
wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php

index a0ca0106e294bb59da78cee804a70a13ac7ace7f..3fddd8aaccde2a219efc6352fbe1e2485f664f05 100644 (file)
@@ -215,7 +215,7 @@ class UserGroupOptionForm extends AbstractForm {
                
                // create form elements for each group
                foreach ($this->groups as $group) {
-                       $optionValue = (isset($this->values[$group->groupID])) ? $this->values[$group->groupID] : $this->userGroupOption->defaultValue;
+                       $optionValue = (isset($this->values[$group->groupID])) ? $this->values[$group->groupID] : '';
                        $this->formElements[$group->groupID] = $this->optionType->getFormElement($this->userGroupOption, $optionValue);
                }
        }