mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
show the error message when phonenumber has a validation error
This commit is contained in:
parent
2647d4c6a7
commit
520c0e0f96
@ -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') {
|
||||
|
@ -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'}) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user