[-] BO: Fix #PSCFV-8179 shop domain used in emails sometimes was for the wrong shop

This commit is contained in:
Rémi Gaillard
2013-05-02 18:42:01 +02:00
parent 63fe5b8d4a
commit 4d4eb9df19
6 changed files with 41 additions and 9 deletions

View File

@@ -373,6 +373,9 @@ class AdminCustomerThreadsControllerCore extends AdminController
if (Tools::isSubmit('submitReply'))
{
$ct = new CustomerThread($id_customer_thread);
ShopUrl::cacheMainDomainForShop((int)$ct->id_shop);
$cm = new CustomerMessage();
$cm->id_employee = (int)$this->context->employee->id;
$cm->id_customer_thread = $ct->id;