Skip to content

Commit

Permalink
IBX-1842: Double message in Button setting in Form Builder (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM authored Jan 29, 2022
1 parent f548ae2 commit ce679c2
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@
</li>
{% endif %}
{% else %}
{% for choice in choices_flat %}
{% if custom_form ? value is not empty and choice.value == value : choice is selectedchoice(value) %}
{% include '@ibexadesign/ui/component/dropdown/dropdown_selected_item.html.twig' with {
value: choice.value,
label: _self.get_translated_label(choice.label, translation_domain),
} %}
{% endif %}
{% endfor %}

{% if value is empty %}
{% if multiple %}
<li class="ibexa-dropdown__selected-item ibexa-dropdown__selected-item--predefined ibexa-dropdown__selected-placeholder">
Expand All @@ -79,6 +70,15 @@
} %}
{% endif %}
{% endif %}
{% else %}
{% for choice in choices_flat %}
{% if custom_form ? choice.value == value : choice is selectedchoice(value) %}
{% include '@ibexadesign/ui/component/dropdown/dropdown_selected_item.html.twig' with {
value: choice.value,
label: _self.get_translated_label(choice.label, translation_domain),
} %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}

Expand Down

0 comments on commit ce679c2

Please sign in to comment.