From cf142b7071f23492ef031a09d6784e79bb12566f Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 22 Feb 2018 17:54:49 +0100 Subject: [PATCH] CS --- adm/tabs/AdminCustomerThreads.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adm/tabs/AdminCustomerThreads.php b/adm/tabs/AdminCustomerThreads.php index ca451497..ef41a27b 100755 --- a/adm/tabs/AdminCustomerThreads.php +++ b/adm/tabs/AdminCustomerThreads.php @@ -38,8 +38,10 @@ class AdminCustomerThreads extends AdminTab $this->view = true; $this->delete = true; - $this->_select = 'CONCAT(c.firstname," ",c.lastname) as customer, cl.name as contact, l.name as language, group_concat(message) as messages, ( - SELECT IFNULL(CONCAT(LEFT(e.firstname, 1),". ",e.lastname), "--") + $this->_select = ' + CONCAT(c.firstname, " ", c.lastname) as customer, cl.name as contact, + l.name as language, group_concat(message) as messages, + (SELECT IFNULL(CONCAT(LEFT(e.firstname, 1), ". ", e.lastname), "--") FROM '._DB_PREFIX_.'customer_message cm2 INNER JOIN '._DB_PREFIX_.'employee e ON e.id_employee = cm2.id_employee WHERE cm2.id_employee > 0 AND cm2.`id_customer_thread` = a.`id_customer_thread` ORDER BY cm2.date_add DESC LIMIT 1