Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AddressController.php #34152

Closed
wants to merge 12 commits into from
6 changes: 3 additions & 3 deletions controllers/front/AddressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ public function postProcess()
$this->address_form->loadAddressById($id_address);
}

// Fill the form with data
$this->address_form->fillWith(Tools::getAllValues());

// Submit the address, don't care if it's an edit or add
if (Tools::isSubmit('submitAddress')) {
// Fill the form with data
$this->address_form->fillWith(Tools::getAllValues());

if (!$this->address_form->submit()) {
$this->errors[] = $this->trans('Please fix the error below.', [], 'Shop.Notifications.Error');
} else {
Expand Down