From b738d09930fe03c0b9fdb5e28499ddee59cf2ebb Mon Sep 17 00:00:00 2001 From: amit sharma Date: Fri, 25 Sep 2026 11:18:37 +0530 Subject: [PATCH] Fixed: Display Anonymous consistently after customer deletion instead of the original email address Co-authored-by: Name --- controllers/admin/AdminCustomersController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index bb2fd3fc4..c919c0a3b 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -1217,6 +1217,15 @@ class AdminCustomersControllerCore extends AdminController $objCustomerGuestDetail->email = $objCustomer->email; $objCustomerGuestDetail->save(); } + + $threads = Db::getInstance()->executeS( + 'SELECT `id_customer_thread` FROM `'._DB_PREFIX_.'customer_thread` WHERE `id_customer` = '.(int) $objCustomer->id + ); + foreach ($threads as $thread) { + $objThread = new CustomerThread($thread['id_customer_thread']); + $objThread->email = $objCustomer->email; + $objThread->save(); + } } $this->redirect_after = self::$currentIndex.'&conf=1&token='.$this->token;