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.

CommentFileSizeAuthor
test_webform_grid_good.csv_.txt1.09 KBAnonymous (not verified)
test_webform_grid_bad.csv_.txt1016 bytesAnonymous (not verified)
grid_bugfix.patch367 bytesAnonymous (not verified)

Comments

quicksketch’s picture

Status: Active » Needs review

Thanks for the report and the patch, I'll take look next time I'm working on Webform.

abalogh’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm both the bug and the fix.
This is great.

xevious’s picture

Thanks for the Patch. It worked for me too.

quicksketch’s picture

Priority: Major » Normal
Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.