Similar to #181967.

When viewing the CSV results for multiple-select fields, the column headers are not separated correctly.

Currently:

+------------+------------+
| Field 1    + Field 2    | 
+------------+------------+------------+------------+------------+------------+
| F1 Value 1 + F1 Value 2 | F1 Value 3 | F2 Value 1 + F2 Value 2 | F2 Value 3 |
+------------+------------+------------+------------+------------+------------+
| Yes        |            | Yes        |            | Yes        |            |
+------------+------------+------------+------------+------------+------------+

Expected result:

+------------+------------+------------+------------+------------+------------+
| Field 1    +            |            | Field 2    |            |            |
+------------+------------+------------+------------+------------+------------+
| F1 Value 1 + F1 Value 2 | F1 Value 3 | F2 Value 1 + F2 Value 2 | F2 Value 3 |
+------------+------------+------------+------------+------------+------------+
| Yes        |            | Yes        |            | Yes        |            |
+------------+------------+------------+------------+------------+------------+

Apply the attached patch from the webform/components directory.

The patch was created by a colleague.

CommentFileSizeAuthor
webform_components_select_csv_header.patch613 bytesRowanw

Comments

quicksketch’s picture

Status: Needs review » Fixed

Committed. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)