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:
Mateusz Uzdowski 2010-10-13 21:04:22 +00:00
parent c684b87815
commit e7ba58970f

View File

@ -143,7 +143,8 @@ class SubmittedFormReportField extends FormField {
return $csvData;
}
else {
SS_HTTPRequest::send_file($csvData, $fileName)->output();
SS_HTTPRequest::send_file($csvData, $fileName, 'text/csv')->output();
exit;
}
} 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);