From 026d7cdb27f57dce05d64a3dc4c90fd5441d84ae Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Sat, 3 Aug 2024 10:58:41 +0530 Subject: [PATCH] Fixed:After making fields as required and clicking on save and stay, customer eamail is not showing on customer detail page. --- controllers/admin/AdminAddressesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminAddressesController.php b/controllers/admin/AdminAddressesController.php index 5005b269b..1d4b32e9e 100644 --- a/controllers/admin/AdminAddressesController.php +++ b/controllers/admin/AdminAddressesController.php @@ -481,7 +481,7 @@ class AdminAddressesControllerCore extends AdminController // in case of save and stay, redirect after save with current address. // Because the current address can not be same as the current one(We have to delete it and create a new one in case address is used in orders) - if (Tools::isSubmit('submitAdd'.$this->table.'AndStay')) { + if (empty($this->errors) && Tools::isSubmit('submitAdd'.$this->table.'AndStay')) { $idCurrentAddress = Customer::getCustomerIdAddress($this->object->id_customer, false); if ($idCurrentAddress != $this->object->id) { $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.$idCurrentAddress.'&conf=4&update'.$this->table.'&token='.$this->token;