Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46f625f

Browse files
Added missing if conditional
1 parent 8266ce5 commit 46f625f

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,19 @@
280280

281281
{{ widget|raw }}
282282
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
283-
{%- if translation_domain is same as(false) -%}
284-
{%- if label_html is same as(false) -%}
285-
{{- label -}}
286-
{%- else -%}
287-
{{- label|raw -}}
288-
{%- endif -%}
289-
{%- else -%}
290-
{%- if label_html is same as(false) -%}
291-
{{- label|trans(label_translation_parameters, translation_domain) -}}
283+
{%- if label is not same as(false) -%}
284+
{%- if translation_domain is same as(false) -%}
285+
{%- if label_html is same as(false) -%}
286+
{{- label -}}
287+
{%- else -%}
288+
{{- label|raw -}}
289+
{%- endif -%}
292290
{%- else -%}
293-
{{- label|trans(label_translation_parameters, translation_domain)|raw -}}
291+
{%- if label_html is same as(false) -%}
292+
{{- label|trans(label_translation_parameters, translation_domain) -}}
293+
{%- else -%}
294+
{{- label|trans(label_translation_parameters, translation_domain)|raw -}}
295+
{%- endif -%}
294296
{%- endif -%}
295297
{%- endif -%}
296298
{{- form_errors(form) -}}

0 commit comments

Comments
 (0)