mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
update address validation
This commit is contained in:
parent
104181ba71
commit
3c6d39dc56
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user