<div class="dropdownMenu">
<ul class="scrollableDropdownMenu">
{foreach from=$availableUserGroups item='availableUserGroup'}
- <li{if $availableUserGroup->groupID == $groupID} class="active"{/if}><a href="{link controller='UserGroupEdit' id=$availableUserGroup->groupID}{/link}">{lang}{$availableUserGroup->groupName}{/lang}</a></li>
+ <li{if $availableUserGroup->groupID == $groupID} class="active"{/if}><a href="{link controller='UserGroupEdit' id=$availableUserGroup->groupID}{/link}">{$availableUserGroup->getName()}</a></li>
{/foreach}
</ul>
</div>
if (I18nHandler::getInstance()->isPlainValue('groupName')) {
I18nHandler::getInstance()->remove($this->groupName);
$this->groupName = I18nHandler::getInstance()->getValue('groupName');
+
+ UserGroup::getGroupByID($this->groupID)->setName($this->groupName);
}
else {
I18nHandler::getInstance()->save('groupName', $this->groupName, 'wcf.acp.group', 1);
+
+ $groupNames = I18nHandler::getInstance()->getValues('groupName');
+ UserGroup::getGroupByID($this->groupID)->setName($groupNames[WCF::getLanguage()->languageID]);
}
$this->groupDescription = 'wcf.acp.group.groupDescription'.$this->group->groupID;
if (I18nHandler::getInstance()->isPlainValue('groupDescription')) {
return WCF::getLanguage()->get($this->groupName);
}
+ /**
+ * Sets the name of this user group.
+ *
+ * This method is only needed to set the current name of it has been changed
+ * in the same request.
+ *
+ * @param string $name
+ */
+ public function setName($name) {
+ $this->data['groupName'] = $name;
+ }
+
/**
* Returns true if current user may delete this group.
*