// PI-116 - attribute default refactoring

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14525 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-04-06 11:59:29 +00:00
parent ef424cadc4
commit f5b4f351fa
6 changed files with 89 additions and 101 deletions
+4 -2
View File
@@ -197,6 +197,7 @@ class HelperListCore extends Helper
{
$id = $tr[$this->identifier];
$name = isset($tr['name']) ? $tr['name'] : null;
if ($this->shopLinkType)
$this->_list[$index]['short_shop_name'] = Tools::strlen($tr['shop_name']) > 15 ? Tools::substr($tr['shop_name'], 0, 15).'...' : $tr['shop_name'];
@@ -481,9 +482,10 @@ class HelperListCore extends Helper
self::$cache_lang['Default'] = $this->l('Default', 'Helper');
$tpl->assign(array_merge($this->tpl_delete_link_vars, array(
'href' => $this->currentIndex.'&'.$this->identifier.'='.$id.'&delete'.$this->table.'&token='.($token != null ? $token : $this->token),
'href' => Tools::safeOutput($this->currentIndex.'&'.$this->identifier.'='.$id.'&delete'.$this->table.'&token='.($token != null ? $token : $this->token)),
'action' => self::$cache_lang['Default'],
'id' => $id,
'name' => Tools::safeOutput($name),
'id' => Tools::safeOutput($id),
)));
return $tpl->fetch();