<select id="{$option->optionName}" name="values[{$option->optionName}]">
- <option value=""></option>
+ {if $option->allowEmptyValue}<option value=""></option>{/if}
{foreach from=$selectOptions key=key item=selectOption}
<option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option>
{/foreach}
'searchable' => $this->searchable,
'editable' => $this->editable,
'visible' => $this->visible,
- 'packageID' => 1
+ 'packageID' => 1,
+ 'additionalData' => ($this->optionType == 'select' ? serialize(array('allowEmptyValue' => true)) : '')
)));
$this->objectAction->executeAction();