Commit 3c6d39dc authored by Julien Fastré's avatar Julien Fastré

update address validation

parent 104181ba
Pipeline #124173 failed with stages
......@@ -35,3 +35,7 @@ Version 1.5.5
- Fix bug in accompanying period filter
Branche master
==============
- Update address validation
......@@ -112,7 +112,7 @@ class PersonAddressController extends Controller
$person->addAddress($address);
if ($form->isSubmitted()) {
if ($form->isSubmitted() && $form->isValid()) {
$validatePersonErrors = $this->validatePerson($person);
if (count($validatePersonErrors) !== 0) {
......@@ -194,7 +194,7 @@ class PersonAddressController extends Controller
$form = $this->createEditForm($person, $address);
$form->handleRequest($request);
if ($request->getMethod() === 'POST') {
if ($form->isSubmitted() and $form->isValid()) {
$validatePersonErrors = $this->validatePerson($person);
if (count($validatePersonErrors) !== 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment