//update of the method _displayEnableLink() call line 171
This commit is contained in:
1 parent
21d405e6dd
commit
d76e8bbc98
1 file changed
+3
-3
@@ -156,19 +156,19 @@ class HelperListCore extends Helper
|
|||||||
$this->_list[$index]['view'] = $this->_displayViewLink($token, $id);
|
$this->_list[$index]['view'] = $this->_displayViewLink($token, $id);
|
||||||
if ($this->edit)
|
if ($this->edit)
|
||||||
$this->_list[$index]['edit'] = $this->_displayEditLink($token, $id);
|
$this->_list[$index]['edit'] = $this->_displayEditLink($token, $id);
|
||||||
if ($this->delete AND (!isset($this->_listSkipDelete) OR !in_array($id, $this->_listSkipDelete)))
|
if ($this->delete AND (!isset($this->_listSkipDelete) || !in_array($id, $this->_listSkipDelete)))
|
||||||
$this->_list[$index]['delete'] = $this->_displayDeleteLink($token, $id);
|
$this->_list[$index]['delete'] = $this->_displayDeleteLink($token, $id);
|
||||||
if ($this->duplicate)
|
if ($this->duplicate)
|
||||||
$this->_list[$index]['duplicate'] = $this->_displayDuplicate($token, $id);
|
$this->_list[$index]['duplicate'] = $this->_displayDuplicate($token, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->fieldsDisplay AS $key => $params)
|
foreach ($this->fieldsDisplay as $key => $params)
|
||||||
{
|
{
|
||||||
$tmp = explode('!', $key);
|
$tmp = explode('!', $key);
|
||||||
$key = isset($tmp[1]) ? $tmp[1] : $tmp[0];
|
$key = isset($tmp[1]) ? $tmp[1] : $tmp[0];
|
||||||
|
|
||||||
if (isset($params['active']))
|
if (isset($params['active']))
|
||||||
$this->_list[$index][$key] = $this->_displayEnableLink($this->token, $tr['identifier'], $tr[$key], $params['active'], Tools::getValue('id_category'), Tools::getValue('id_product'));
|
$this->_list[$index][$key] = $this->_displayEnableLink($this->token, $id, $tr[$key], $params['active'], Tools::getValue('id_category'), Tools::getValue('id_product'));
|
||||||
else if (isset($params['activeVisu']))
|
else if (isset($params['activeVisu']))
|
||||||
$this->_list[$index][$key] = (bool)$tr[$key];
|
$this->_list[$index][$key] = (bool)$tr[$key];
|
||||||
else if (isset($params['position']))
|
else if (isset($params['position']))
|
||||||
|
|||||||
Reference in new issue
Block a user