// Fix htmlentities on csv export
This commit is contained in:
@@ -581,7 +581,7 @@ class AdminControllerCore extends Controller
|
|||||||
|
|
||||||
$headers = array();
|
$headers = array();
|
||||||
foreach ($this->fields_list as $datas)
|
foreach ($this->fields_list as $datas)
|
||||||
$headers[] = $datas['title'];
|
$headers[] = Tools::htmlentitiesDecodeUTF8($datas['title']);
|
||||||
|
|
||||||
$content = array();
|
$content = array();
|
||||||
foreach ($this->_list as $i => $row)
|
foreach ($this->_list as $i => $row)
|
||||||
@@ -589,7 +589,7 @@ class AdminControllerCore extends Controller
|
|||||||
$content[$i] = array();
|
$content[$i] = array();
|
||||||
foreach ($this->fields_list as $key => $value)
|
foreach ($this->fields_list as $key => $value)
|
||||||
if (isset($row[$key]))
|
if (isset($row[$key]))
|
||||||
$content[$i][] = $row[$key];
|
$content[$i][] = Tools::htmlentitiesDecodeUTF8($row[$key]);
|
||||||
|
|
||||||
}
|
}
|
||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
|
|||||||
Reference in New Issue
Block a user