浏览代码

[Backend] Export comptable

feature/tableau_edition_avancee
Fab 4 年前
父节点
当前提交
a747e968d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      ShopBundle/Services/CsvGenerator.php

+ 1
- 1
ShopBundle/Services/CsvGenerator.php 查看文件

@@ -132,7 +132,7 @@ class CsvGenerator
$response = new StreamedResponse(function () {
$this->createCsv('php://output');
});
$response->headers->set('Content-Encoding', 'UTF-8');
$response->headers->set('Content-Type', 'application/force-download');
$response->headers->set('Content-Disposition', 'attachment; filename="'.$this->titleDocument.'.csv"');
return $response;

正在加载...
取消
保存