From: Matthias Schmidt Date: Thu, 21 Jul 2011 07:12:27 +0000 (+0200) Subject: Fixed UserGroupAddForm X-Git-Tag: 2.0.0_Beta_1~1969^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=245f10a4e3c0a0996eb4d1ea61d3b99cb6b8dfa9;p=GitHub%2FWoltLab%2FWCF.git Fixed UserGroupAddForm There was a part of UserGroupEditForm::readData() in UserGroupAddForm::r eadData() which caused an error since UserGroupAddForm::$group isn't def ined. --- diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php index a46cf53a72..ada45428ec 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php @@ -144,30 +144,6 @@ class UserGroupAddForm extends AbstractOptionListForm { public function readData() { AbstractOptionListForm::readData(); - if (!count($_POST)) { - $this->groupName = $this->group->groupName; - - // get default values - if ($this->group->groupType != UserGroup::EVERYONE) { - $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE); - foreach ($this->options as $option) { - $value = $defaultGroup->getGroupOption($option->optionName); - if ($value !== null) { - $this->optionValues[$option->optionName] = $value; - } - } - } - - - - foreach ($this->options as $option) { - $value = $this->group->getGroupOption($option->optionName); - if ($value !== null) { - $this->optionValues[$option->optionName] = $value; - } - } - } - $this->optionTree = $this->getOptionTree(); if (!count($_POST)) { $this->activeTabMenuItem = $this->optionTree[0]['object']->categoryName;