I have a webform with multiple fields and we archive it every month. The archive is working correctly, however, for one of the months when we tried to download the report, the columns were all messed up. On further investigation, we found that for the columns which didn't have data, they were being filled with data from the next column and so on.

Comments

SGhosh created an issue. See original summary.

SGhosh’s picture

Assigned: SGhosh » Unassigned
Status: Active » Needs review
StatusFileSize
new806 bytes

Attaching a fix for the issue.

What the patch does - when creating the file, loop the header array to add the data to the correct columns. For missing data, add empty value.

  • gaurav.goyal committed 24047d5 on 7.x-1.x authored by SGhosh
    Issue #2861069 by SGhosh: Empty data messing up columns in archive...
gaurav.goyal’s picture

Status: Needs review » Reviewed & tested by the community

Thanks SGosh for reporting and working on this issue. I've committed this patch to the dev version of this module.

gaurav.goyal’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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