When exporting data from a Grid component and there are responses that were optional and not selected, these empty responses are not included in the csv file. This results in a csv file with the data 'shifted' when a non-response comes between other responses. This issues affects 6x-3.3 and up. I've attached a csv file that illustrates the issue, a csv file with the expected output, and a patch that fixes the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| test_webform_grid_good.csv_.txt | 1.09 KB | Anonymous (not verified) | |
| test_webform_grid_bad.csv_.txt | 1016 bytes | Anonymous (not verified) | |
| grid_bugfix.patch | 367 bytes | Anonymous (not verified) |
Comments
Comment #1
quicksketchThanks for the report and the patch, I'll take look next time I'm working on Webform.
Comment #2
abalogh commentedI can confirm both the bug and the fix.
This is great.
Comment #3
xevious commentedThanks for the Patch. It worked for me too.
Comment #4
quicksketchThanks, committed.