Skip to content

Commit 13d481e

Browse files
committed
bug #10208 {% if label is not same as(false) and required %} (gonzakpo)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #10208). Discussion ---------- {% if label is not same as(false) and required %} {% if label is not same as(false) and required %} <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- d6f024a {% if label is not same as(false) and required %}
2 parents 21885a5 + d6f024a commit 13d481e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/form_customization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ form, modify the ``use`` tag and add the following:
713713
{% block form_label %}
714714
{{ block('base_form_label') }}
715715

716-
{% if required %}
716+
{% if label is not same as(false) and required %}
717717
<span class="required" title="This field is required">*</span>
718718
{% endif %}
719719
{% endblock %}
@@ -728,7 +728,7 @@ the following:
728728
{% block form_label %}
729729
{{ parent() }}
730730

731-
{% if required %}
731+
{% if label is not same as(false) and required %}
732732
<span class="required" title="This field is required">*</span>
733733
{% endif %}
734734
{% endblock %}

0 commit comments

Comments
 (0)