8000 bug #12913 Fix missing space in label_attr (garak) · symfony/symfony@144c19d · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 144c19d

Browse files
committed
bug #12913 Fix missing space in label_attr (garak)
This PR was merged into the 2.6 branch. Discussion ---------- Fix missing space in label_attr | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - ``label_attr`` in ``checkbox_radio_label`` is missing a space with ``parent_label_class`` Commits ------- 90b3f3b Fix missing space in label_attr
2 parents 0a09eaf + 90b3f3b commit 144c19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
161161
{% endif %}
162162
{% if parent_label_class is defined %}
163-
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ parent_label_class)|trim}) %}
163+
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %}
164164
{% endif %}
165165
{% if label is empty %}
166166
{% set label = name|humanize %}

0 commit comments

Comments
 (0)
0