Removed: Message to is removed in case no customer name is added in the customer message

This commit is contained in:
vishalsingh.qlo325
2025-04-21 16:11:37 +05:30
parent 9bd4ae72d0
commit 62474a3497

View File

@@ -864,8 +864,15 @@ class AdminCustomerThreadsControllerCore extends AdminController
$content = '';
if (!$message['private']) {
if ($message['id_employee']) {
$content .= $this->l('Message to: ').' <span class="badge">'.($message['customer_name']).'</span><br/><br/>';
$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: ').' <span class="badge">'.($customerName).'</span><br/><br/>';
}
} else {
$content .= '<span class="label label-info">'.$this->l('Private').'</span><br/><br/>';