[-] BO : Fix bug for csv export

This commit is contained in:
gRoussac
2013-04-24 17:29:36 +02:00
parent 5967c6ebbe
commit 1975755d8a
2 changed files with 2 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{foreach from=$export_headers item=header}{$header};{/foreach}
{$export_precontent}{foreach from=$export_headers item=header}{$header};{/foreach}
{foreach from=$export_content item=line}
{foreach from=$line item=content}{$content};{/foreach}

View File

@@ -594,6 +594,7 @@ class AdminControllerCore extends Controller
}
$this->context->smarty->assign(array(
'export_precontent' => "\xEF\xBB\xBF",
'export_headers' => $headers,
'export_content' => $content
)