/**
  * @see wcf\page\IPage::readData()
  */
 public function readData()
 {
     if (!count($_POST)) {
         I18nHandler::getInstance()->setOptions('groupName', 1, $this->group->groupName, 'wcf.acp.group.group\\d+');
         $this->groupName = $this->group->groupName;
         $options = $this->optionHandler->getCategoryOptions();
         // get default values
         if ($this->group->groupType != UserGroup::EVERYONE) {
             $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE);
             foreach ($options as $option) {
                 $value = $defaultGroup->getGroupOption($option['object']->optionName);
                 if ($value !== null) {
                     $this->optionValues[$option['object']->optionName] = $value;
                 }
             }
         }
         foreach ($options as $option) {
             $value = $this->group->getGroupOption($option['object']->optionName);
             if ($value !== null) {
                 $this->optionValues[$option['object']->optionName] = $value;
             }
         }
     }
     parent::readData();
 }
 /**
  * @see	\wcf\page\IPage::readData()
  */
 public function readData()
 {
     if (empty($_POST)) {
         I18nHandler::getInstance()->setOptions('groupName', 1, $this->group->groupName, 'wcf.acp.group.group\\d+');
         I18nHandler::getInstance()->setOptions('groupDescription', 1, $this->group->groupDescription, 'wcf.acp.group.groupDescription\\d+');
         $this->groupName = $this->group->groupName;
         $this->groupDescription = $this->group->groupDescription;
         $this->priority = $this->group->priority;
         $this->userOnlineMarking = $this->group->userOnlineMarking;
         $this->showOnTeamPage = $this->group->showOnTeamPage;
         $options = $this->optionHandler->getCategoryOptions();
         // get default values
         if ($this->group->groupType != UserGroup::EVERYONE) {
             $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE);
             foreach ($options as $option) {
                 $value = $defaultGroup->getGroupOption($option['object']->optionName);
                 if ($value !== null) {
                     $this->optionValues[$option['object']->optionName] = $value;
                 }
             }
         }
         foreach ($options as $option) {
             $value = $this->group->getGroupOption($option['object']->optionName);
             if ($value !== null) {
                 $this->optionValues[$option['object']->optionName] = $value;
             }
         }
     }
     parent::readData();
 }