When exporting submissions using the built in webform reporting tool, the countdown header title appears in the first row, whereas all other fields appear in the 3rd row (composite field titles & the report name name appear in the first two rows). This breaks the layout of the file, as the header rows are then mismatched to their data.
The webform component CSV header component should match the textarea component, eg:
/**
* Implements _webform_csv_headers_component().
*/
function _webform_csv_headers_textarea($component, $export_options) {
$header = array();
$header[0] = '';
$header[1] = '';
$header[2] = $component['name'];
return $header;
}
whereas currently the following is true:
/**
* Implements _webform_csv_headers_component().
*/
function _webform_csv_headers_countdown($component, $export_options) {
$header = array();
$header[0] = $component['name'];
return $header;
}
I've updated the code, patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webform_countdown-csv-header-positioning-2210369-3.patch | 1.07 KB | andybrace |
Comments
Comment #1
andybrace commentedComment #2
andybrace commentedShould have said, I'm using webform_countdown with Webform module version 7.x-3.18.
Comment #3
andybrace commentedComment #6
kvnm commented