mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Ensure GridFieldExportButton uses "text/csv" as the MIME type
This commit is contained in:
parent
eeef41e91f
commit
e2aa635323
@ -87,7 +87,7 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
|||||||
$fileName = "export-$now.csv";
|
$fileName = "export-$now.csv";
|
||||||
|
|
||||||
if($fileData = $this->generateExportFileData($gridField)){
|
if($fileData = $this->generateExportFileData($gridField)){
|
||||||
return SS_HTTPRequest::send_file($fileData, $fileName);
|
return SS_HTTPRequest::send_file($fileData, $fileName, 'text/csv');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user