diff --git a/code/submissions/SubmittedFormReportField.php b/code/submissions/SubmittedFormReportField.php index 8ac93c9..a66c754 100755 --- a/code/submissions/SubmittedFormReportField.php +++ b/code/submissions/SubmittedFormReportField.php @@ -113,26 +113,25 @@ class SubmittedFormReportField extends FormField { foreach($index as $idx) { $rows[$i][$idx] = $column->Value; } + $rows[$i]['Submitted'] = $submission->Created; } } } $i++; } - // CSV header row - $csvData = '"' . implode('","', $csvHeaderTitle) . '"' . "\n"; + $csvData = '"' . implode('","', $csvHeaderTitle) . '"' . ',"Submitted"'."\n"; // For every row of data (one form submission = one row) foreach($rows as $row) { - // Loop over all the names we can use for($i=0;$i