[-] 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}