Skip to content

Commit 576a47f

Browse files
bug #62695 [TwigBridge] do not render button labels if they are explicitly disabled (xabbuh)
This PR was merged into the 7.4 branch. Discussion ---------- [TwigBridge] do not render button labels if they are explicitly disabled | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #62580 | License | MIT Commits ------- 6868493 do not render button labels if they are explicitly disabled
2 parents 13a5dd2 + 6868493 commit 576a47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
'%name%': name,
286286
'%id%': id,
287287
}) %}
288-
{%- else -%}
288+
{%- elseif 'button' not in block_prefixes or label is not same as(false) -%}
289289
{% set label = name|humanize %}
290290
{%- endif -%}
291291
{%- endif -%}

0 commit comments

Comments
 (0)