[-] BO : fixed sav display message in hard coded html span #PSTEST-545

This commit is contained in:
vAugagneur
2012-01-27 09:33:48 +00:00
parent c7b86c74b9
commit 94f7f5e8e8
3 changed files with 7 additions and 9 deletions
@@ -101,7 +101,11 @@
{elseif isset($tr.$key) && $key == 'color'}
<div style="float: left; width: 18px; height: 12px; border: 1px solid #996633; background-color: {$tr.$key}; margin-right: 4px;"></div>
{elseif isset($tr.$key)}
{$tr.$key|escape:'htmlall':'UTF-8'}
{if isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength}
<span title="{$tr.$key|escape:'htmlall':'UTF-8'}">{$tr.$key|truncate:$params.maxlength:'...'|escape:'htmlall':'UTF-8'}</span>
{else}
{$tr.$key|escape:'htmlall':'UTF-8'}
{/if}
{else}
--
{/if}
+1 -7
View File
@@ -295,13 +295,7 @@ class HelperListCore extends Helper
$this->_list[$index][$key] = Tools::displayDate($tr[$key], $this->context->language->id, true);
else if (isset($tr[$key]))
{
if ($key == 'price')
$echo = round($tr[$key], 2);
else if (isset($params['maxlength']) && Tools::strlen($tr[$key]) > $params['maxlength'])
$echo = '<span title="'.$tr[$key].'">'.Tools::substr($tr[$key], 0, $params['maxlength']).'...</span>';
else
$echo = $tr[$key];
$echo = $tr[$key];
if (isset($params['callback']))
{
$callback_obj = (isset($params['callback_object'])) ? $params['callback_object'] : $this->context->controller;
@@ -111,7 +111,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
'width' => 50,
'filter_key' => 'messages',
'tmpTableFilter' => true,
'maxlength' => 0
'maxlength' => 40
),
'date_upd' => array(
'title' => $this->l('Last message'),