show the error message when phonenumber has a validation error

This commit is contained in:
Julien Fastré 2021-04-21 15:05:47 +02:00
parent 2647d4c6a7
commit 520c0e0f96
2 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,8 @@ class PersonType extends AbstractType
'label' => false,
'delete_empty' => function(PersonPhone $pp = null) {
return NULL === $pp || $pp->isEmpty();
}
},
'error_bubbling' => false
]);
if ($this->config['email'] === 'visible') {

View File

@ -85,6 +85,7 @@
{%- endif -%}
{%- if form.otherPhoneNumbers is defined -%}
{{ form_widget(form.otherPhoneNumbers) }}
{{ form_errors(form.otherPhoneNumbers) }}
{%- endif -%}
{%- if form.contactInfo is defined -%}
{{ form_row(form.contactInfo, {'label': 'Notes on contact information'}) }}