From c053d6332bbc1a0923db3d7da9e66319f3a705ee Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 8 Aug 2012 07:17:03 +0000 Subject: [PATCH] [-] FO : fixed bug #PSCFV-2741 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16756 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCustomerThreadsController.php | 2 +- themes/default/order-detail.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index ca4181ccd..64779bbe7 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -381,7 +381,7 @@ class AdminCustomerThreadsControllerCore extends AdminController $cm = new CustomerMessage(); $cm->id_employee = (int)$this->context->employee->id; $cm->id_customer_thread = $ct->id; - $cm->message = Tools::htmlentitiesutf8(Tools::nl2br(Tools::getValue('reply_message'))); + $cm->message = Tools::nl2br(Tools::htmlentitiesutf8(Tools::getValue('reply_message'))); $cm->ip_address = ip2long($_SERVER['REMOTE_ADDR']); if (isset($_FILES) && !empty($_FILES['joinFile']['name']) && $_FILES['joinFile']['error'] != 0) $this->errors[] = Tools::displayError('An error occurred with the file upload.'); diff --git a/themes/default/order-detail.tpl b/themes/default/order-detail.tpl index 71f183221..7cb5866a7 100644 --- a/themes/default/order-detail.tpl +++ b/themes/default/order-detail.tpl @@ -371,7 +371,7 @@ {foreach from=$messages item=message name="messageList"} - {if isset($message.ename) && $message.ename} + {if isset($message.elastname) && $message.elastname} {$message.efirstname|escape:'htmlall':'UTF-8'} {$message.elastname|escape:'htmlall':'UTF-8'} {elseif $message.clastname} {$message.cfirstname|escape:'htmlall':'UTF-8'} {$message.clastname|escape:'htmlall':'UTF-8'}