mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 01:55:01 +00:00
update address validation
This commit is contained in:
@@ -35,3 +35,7 @@ Version 1.5.5
|
|||||||
|
|
||||||
- Fix bug in accompanying period filter
|
- Fix bug in accompanying period filter
|
||||||
|
|
||||||
|
Branche master
|
||||||
|
==============
|
||||||
|
|
||||||
|
- Update address validation
|
||||||
|
@@ -112,7 +112,7 @@ class PersonAddressController extends Controller
|
|||||||
|
|
||||||
$person->addAddress($address);
|
$person->addAddress($address);
|
||||||
|
|
||||||
if ($form->isSubmitted()) {
|
if ($form->isSubmitted() && $form->isValid()) {
|
||||||
$validatePersonErrors = $this->validatePerson($person);
|
$validatePersonErrors = $this->validatePerson($person);
|
||||||
|
|
||||||
if (count($validatePersonErrors) !== 0) {
|
if (count($validatePersonErrors) !== 0) {
|
||||||
@@ -194,7 +194,7 @@ class PersonAddressController extends Controller
|
|||||||
$form = $this->createEditForm($person, $address);
|
$form = $this->createEditForm($person, $address);
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
||||||
if ($request->getMethod() === 'POST') {
|
if ($form->isSubmitted() and $form->isValid()) {
|
||||||
$validatePersonErrors = $this->validatePerson($person);
|
$validatePersonErrors = $this->validatePerson($person);
|
||||||
|
|
||||||
if (count($validatePersonErrors) !== 0) {
|
if (count($validatePersonErrors) !== 0) {
|
||||||
|
Reference in New Issue
Block a user