mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: Submissions were exported in implied ID order, which is not guaranteed on all DB engines, esp postgres, so put in explicit order
This commit is contained in:
parent
3bb82d43f6
commit
40592031ff
@ -86,7 +86,7 @@ class SubmittedFormReportField extends FormField {
|
|||||||
$csvHeaderNames = array();
|
$csvHeaderNames = array();
|
||||||
$csvHeaderTitle = array();
|
$csvHeaderTitle = array();
|
||||||
|
|
||||||
$submissions = $udf->Submissions();
|
$submissions = $udf->Submissions("", "\"ID\"");
|
||||||
|
|
||||||
if($submissions && $submissions->exists()) {
|
if($submissions && $submissions->exists()) {
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ class SubmittedFormReportField extends FormField {
|
|||||||
FROM \"SubmittedFormField\"
|
FROM \"SubmittedFormField\"
|
||||||
LEFT JOIN \"SubmittedForm\" ON \"SubmittedForm\".\"ID\" = \"SubmittedFormField\".\"ParentID\"
|
LEFT JOIN \"SubmittedForm\" ON \"SubmittedForm\".\"ID\" = \"SubmittedFormField\".\"ParentID\"
|
||||||
WHERE \"SubmittedFormField\".\"ParentID\" IN (" . implode(',', $inClause) . ")
|
WHERE \"SubmittedFormField\".\"ParentID\" IN (" . implode(',', $inClause) . ")
|
||||||
GROUP BY \"Name\"
|
GROUP BY \"SubmittedFormField\".\"ID\",\"Name\",\"Title\"
|
||||||
ORDER BY \"SubmittedFormField\".\"ID\"
|
ORDER BY \"SubmittedFormField\".\"ID\"
|
||||||
");
|
");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user