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