Skip to content

Commit

Permalink
Fix for empty option
Browse files Browse the repository at this point in the history
  • Loading branch information
kozi committed Feb 20, 2015
1 parent d5135bf commit de461e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contao/templates/form_select_recipient.html5
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<?php endif; ?>

<?php if ($option['type'] == 'option'): ?>
<option value="<?php echo $option['label']; ?>"<?php echo $option['selected']; ?>><?php echo $option['label']; ?></option>
<option value="<?php echo ($option['value'] == '') ? '' : $option['label']; ?>"<?php echo $option['selected']; ?>><?php echo $option['label']; ?></option>
<?php endif; ?>

<?php if ($option['type'] == 'group_end'): ?>
Expand Down

0 comments on commit de461e8

Please sign in to comment.