<dl{if $errorField == 'optionType'} class="formError"{/if}>
<dt><label for="optionType">{lang}wcf.acp.user.option.optionType{/lang}</label></dt>
<dd>
- <select name="optionType" id="optionType"{if $action === 'edit' && $userOption->optionName === 'aboutMe'} disabled{/if}>
+ <select name="optionType" id="optionType"{if $action === 'edit'} disabled{/if}>
{foreach from=$availableOptionTypes item=availableOptionType}
<option value="{$availableOptionType}"{if $availableOptionType == $optionType} selected{/if}>{$availableOptionType}</option>
{/foreach}
public function readFormParameters() {
parent::readFormParameters();
- if ($this->userOption->optionName === 'aboutMe') {
- $this->optionType = 'aboutMe';
- }
+ $this->optionType = $this->userOption->optionType;
}
/**