From a7f4c1452f7310882fdd466cbbdb53b790167d1b Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Thu, 1 Feb 2024 22:28:58 +0100 Subject: [PATCH] fix: choice_errors is directly calling form_errors and both render the helptext --- .../src/Resources/views/bootstrap5/form/fields.html.twig | 9 --------- .../src/Resources/views/form/fields.html.twig | 9 --------- 2 files changed, 18 deletions(-) diff --git a/EMS/admin-ui-bundle/src/Resources/views/bootstrap5/form/fields.html.twig b/EMS/admin-ui-bundle/src/Resources/views/bootstrap5/form/fields.html.twig index 165571c1e..e2203685b 100644 --- a/EMS/admin-ui-bundle/src/Resources/views/bootstrap5/form/fields.html.twig +++ b/EMS/admin-ui-bundle/src/Resources/views/bootstrap5/form/fields.html.twig @@ -455,15 +455,6 @@ {{ parent() }} {% endblock form_errors %} -{% block choice_errors %} - {% if form.parent is defined and form.parent.vars.helptext is defined and form.parent.vars.helptext %} -
{{ form.parent.vars.helptext|raw }}
- {% endif %} - {{ block('form_errors') }} -{% endblock choice_errors %} - - - {% block tabsfieldtype_row -%} {#
#} {#
#} diff --git a/EMS/core-bundle/src/Resources/views/form/fields.html.twig b/EMS/core-bundle/src/Resources/views/form/fields.html.twig index b3e0d6343..967ebbf1a 100644 --- a/EMS/core-bundle/src/Resources/views/form/fields.html.twig +++ b/EMS/core-bundle/src/Resources/views/form/fields.html.twig @@ -457,15 +457,6 @@ {{ parent() }} {% endblock form_errors %} -{% block choice_errors %} - {% if form.parent is defined and form.parent.vars.helptext is defined and form.parent.vars.helptext %} -
{{ form.parent.vars.helptext|raw }}
- {% endif %} - {{ block('form_errors') }} -{% endblock choice_errors %} - - - {% block tabsfieldtype_row -%} {#
#} {#
#}