mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
update address validation
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user