From 508cd6e028fc00681f3c8df2420a021c5ac6b095 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 16 Jan 2013 12:20:02 +0100 Subject: [PATCH] [-] BO : fixed bug #PSCFV-6381 - Customer Service mixing groups of shops (Multistore) --- classes/CustomerThread.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/CustomerThread.php b/classes/CustomerThread.php index 9bbec9f8a..78475b36b 100644 --- a/classes/CustomerThread.php +++ b/classes/CustomerThread.php @@ -102,6 +102,7 @@ class CustomerThreadCore extends ObjectModel SELECT id_customer_thread FROM '._DB_PREFIX_.'customer_thread ct2 WHERE status = "open" AND ct.id_contact = ct2.id_contact + '.Shop::addSqlRestriction().' ORDER BY date_upd ASC LIMIT 1 ) as id_customer_thread @@ -111,6 +112,7 @@ class CustomerThreadCore extends ObjectModel WHERE ct.status = "open" AND ct.id_contact IS NOT NULL AND cl.id_contact IS NOT NULL + '.Shop::addSqlRestriction().' GROUP BY ct.id_contact HAVING COUNT(*) > 0 '); }