From 62474a34973a7190d5a775713f55bed079840db8 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Mon, 21 Apr 2025 16:11:37 +0530 Subject: [PATCH] Removed: Message to is removed in case no customer name is added in the customer message --- controllers/admin/AdminCustomerThreadsController.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 0916fb3eb..dddc015d9 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -864,8 +864,15 @@ class AdminCustomerThreadsControllerCore extends AdminController $content = ''; if (!$message['private']) { - if ($message['id_employee']) { - $content .= $this->l('Message to: ').' '.($message['customer_name']).'

'; + $customerName = false; + if (!$message['id_customer']) { + $customerName = $message['user_name']; + } else if ($message['customer_name']) { + $customerName = $message['customer_name']; + } + + if ($message['id_employee'] && $customerName) { + $content .= $this->l('Message to: ').' '.($customerName).'

'; } } else { $content .= ''.$this->l('Private').'

';