mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: provide default file format, as Windows is unable to detect the mime type, and exit after the file is served so the headers will not get overwritten.
This commit is contained in:
parent
c684b87815
commit
e7ba58970f
@ -143,7 +143,8 @@ class SubmittedFormReportField extends FormField {
|
|||||||
return $csvData;
|
return $csvData;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SS_HTTPRequest::send_file($csvData, $fileName)->output();
|
SS_HTTPRequest::send_file($csvData, $fileName, 'text/csv')->output();
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
user_error("'$SQL_ID' is a valid type, but we can't find a UserDefinedForm in the database that matches the ID.", E_USER_ERROR);
|
user_error("'$SQL_ID' is a valid type, but we can't find a UserDefinedForm in the database that matches the ID.", E_USER_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user