Skip to content

Commit

Permalink
bug #6002 Fix incorrect '' test in form theme causing regression (wiz…
Browse files Browse the repository at this point in the history
…hippo)

This PR was merged into the 4.x branch.

Discussion
----------

Fix incorrect '' test in form theme causing regression

Fix regression introduced by 7fdd14d

See #6001

<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license
-->

Commits
-------

220708f Fix regression issue 6001
  • Loading branch information
javiereguiluz committed Nov 3, 2023
2 parents d96c377 + 220708f commit 015e5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/crud/form_theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
{% if required -%}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
{%- endif -%}
{% if label == '' -%}
{% if label is same as('') -%}
{# don't process the label; this is used to not display any label content
but render an empty <label> element keep the form layout #}
{%- elseif label is null -%}
Expand Down

0 comments on commit 015e5f8

Please sign in to comment.