Fixed UserGroupAddForm
authorMatthias Schmidt <gravatronics@live.com>
Thu, 21 Jul 2011 07:12:27 +0000 (09:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 21 Jul 2011 07:12:27 +0000 (09:12 +0200)
There was a part of UserGroupEditForm::readData() in UserGroupAddForm::r
eadData() which caused an error since UserGroupAddForm::$group isn't def
ined.

wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php

index a46cf53a72b24abf967bf237bd25c419b9044914..ada45428ec4ce1b2a53aa49694bbec040d6b310f 100755 (executable)
@@ -144,30 +144,6 @@ class UserGroupAddForm extends AbstractOptionListForm {
        public function readData() {\r
                AbstractOptionListForm::readData();\r
                \r
-               if (!count($_POST)) {\r
-                       $this->groupName = $this->group->groupName;\r
-                       \r
-                       // get default values\r
-                       if ($this->group->groupType != UserGroup::EVERYONE) {\r
-                               $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE);\r
-                               foreach ($this->options as $option) {\r
-                                       $value = $defaultGroup->getGroupOption($option->optionName);\r
-                                       if ($value !== null) {\r
-                                               $this->optionValues[$option->optionName] = $value;\r
-                                       }\r
-                               }\r
-                       }\r
-                       \r
-                       \r
-                       \r
-                       foreach ($this->options as $option) {\r
-                               $value = $this->group->getGroupOption($option->optionName);\r
-                               if ($value !== null) {\r
-                                       $this->optionValues[$option->optionName] = $value;\r
-                               }\r
-                       }\r
-               }\r
-               \r
                $this->optionTree = $this->getOptionTree();\r
                if (!count($_POST)) {\r
                        $this->activeTabMenuItem = $this->optionTree[0]['object']->categoryName;\r