File tree 2 files changed +2
-2
lines changed
Bridge/Twig/Resources/views/Form
Bundle/FrameworkBundle/Resources/views/Form
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 133
133
</div >
134
134
{% else %}
135
135
<select {{ block (' attributes' ) }}{% if multiple %} multiple =" multiple" {% endif %}>
136
- {% if not multiple and empty_value is not none %}
136
+ {% if empty_value is not none %}
137
137
<option value =" " >{{ empty_value | trans }}</option >
138
138
{% endif %}
139
139
{% if preferred_choices | length > 0 %}
Original file line number Diff line number Diff line change 12
12
<?php if ($ read_only ): ?> disabled="disabled"<?php endif ?>
13
13
<?php if ($ multiple ): ?> multiple="multiple"<?php endif ?>
14
14
>
15
- <?php if (! $ multiple && null !== $ empty_value ): ?> <option value=""><?php echo $ view ->escape ($ view ['translator ' ]->trans ($ empty_value )) ?> </option><?php endif ; ?>
15
+ <?php if (null !== $ empty_value ): ?> <option value=""><?php echo $ view ->escape ($ view ['translator ' ]->trans ($ empty_value )) ?> </option><?php endif ; ?>
16
16
<?php if (count ($ preferred_choices ) > 0 ): ?>
17
17
<?php foreach ($ preferred_choices as $ choice => $ label ): ?>
18
18
<?php if ($ view ['form ' ]->isChoiceGroup ($ label )): ?>
You can’t perform that action at this time.
0 commit comments