<select name="{$field.ins_id}" {if $context.preselection}disabled="disabled"{/if}>
	{if $field.isMandatory ne 'y' || empty($field.value)}
		<option value=""></option>
	{/if}
	{foreach key=id item=label from=$field.list}
		<option value="{$id|escape}" {if $context.preselection and $context.preselection eq $id or !$context.preselection and $field.value eq $id}selected="selected"{/if}>
			{if $field.listdisplay[$id] eq ""}
				{$label|escape}
			{else}
				{$field.listdisplay[$id]|escape}
			{/if}
		</option>
	{/foreach}
</select>

<select name="{$field.ins_id}" {if $context.preselection}disabled="disabled"{/if}>
	{if $field.isMandatory ne 'y' || empty($field.value)}
		<option value=""></option>
	{/if}
	{foreach key=id item=label from=$field.list}
		<option value="{$id|escape}" {if $context.preselection and !$field.value and $context.preselection eq $id or $field.value eq $id}selected="selected"{/if}>
			{if $field.listdisplay[$id] eq ""}
				{$label|escape}
			{else}
				{$field.listdisplay[$id]|escape}
			{/if}
		</option>
	{/foreach}
</select>

Apply preselection only when no value yet exists, to avoid accidental changing of existing value
[FIX] Apply preselection only when no value yet exists, to avoid accidental changing of existing value

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@37724 b456876b-0849-0410-b77d-98878d47e9d5
