mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX Redundancy of HTTPRequest when exporting data in SubmittedFormReportField because of recent class name changes
This commit is contained in:
parent
468ebf4fcb
commit
f0dbf7f917
@ -138,7 +138,11 @@ class SubmittedFormReportField extends FormField {
|
|||||||
user_error("No submissions to export.", E_USER_ERROR);
|
user_error("No submissions to export.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
SS_HTTPRequest::send_file($csvData, $fileName)->output();
|
if(class_exists('SS_HTTPRequest')) {
|
||||||
|
SS_HTTPRequest::send_file($csvData, $fileName)->output();
|
||||||
|
} else {
|
||||||
|
HTTPRequest::send_file($csvData, $fileName)->output();
|
||||||
|
}
|
||||||
|
|
||||||
} 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