[-] 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
@@ -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;
@@ -268,6 +268,8 @@ class AdminOrdersControllerCore extends AdminController
throw new PrestaShopException('Can\'t load Order object');
}
ShopUrl::cacheMainDomainForShop((int)$order->id_shop);
/* Update shipping number */
if (Tools::isSubmit('submitShippingNumber') && isset($order))
{