From: Alexander Ebert Date: Wed, 25 Jan 2012 21:36:58 +0000 (+0100) Subject: Fixed user group editing X-Git-Tag: 2.0.0_Beta_1~1388^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efc3c01a2549a9e91223c8e94201f400ddbeb695;p=GitHub%2FWoltLab%2FWCF.git Fixed user group editing --- diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php index 69f7c0c375..5dfc11905d 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php @@ -121,18 +121,18 @@ class UserGroupEditForm extends UserGroupAddForm { AbstractForm::save(); // save group + $optionValues = $this->optionHandler->save(); $saveOptions = array(); if ($this->group->groupType == UserGroup::EVERYONE) { - foreach ($this->options as $option) { - $saveOptions[$option->optionID] = $this->optionValues[$option->optionName]; - } + $saveOptions = $optionValues; } else { // get default group $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE); - foreach ($this->options as $option) { - if ($this->optionValues[$option->optionName] != $defaultGroup->getGroupOption($option->optionName)) { - $saveOptions[$option->optionID] = $this->optionValues[$option->optionName]; + foreach ($this->optionHandler->getCategoryOptions() as $option) { + $option = $option['object']; + if ($optionValues[$option->optionID] != $defaultGroup->getGroupOption($option->optionName)) { + $saveOptions[$option->optionID] = $optionValues[$option->optionID]; } } }