Problem/Motivation
Steps to reproduce
- Create a simple form with composite items
co_author_editor_translator_1: '#type': webform_name '#title': Co-Author/Editor/Translator_1 '#title_display': '' '#wrapper_type': container '#title__access': false '#first__title': 'Given /First Name' '#middle__access': false '#last__title': 'Surname/Last Name' '#suffix__access': false '#degree__access': false co_author_editor_translator_2: '#type': webform_name '#title': Co-Author/Editor/Translator_2 '#title_display': '' '#wrapper_type': container '#title__access': false '#first__title': 'Given /First Name' '#middle__access': false '#last__title': 'Surname/Last Name' '#suffix__access': false '#degree__access': false - Submit the form, filling out information in one of the items and not any information in the other item.
Expected result.
1 column in the spreadsheet for each subfield of the two controls.
| title1 | first1 | middle1 | last1 | degree1 | other1 |
Actual result.
1 column in the spreadsheet for each of subfield of the populated control and 1 column total for the unpopulated control.
| title1 | first1 | middle1 | last1 | degree1 | other1 |
Proposed resolution
Add logic to handle empty composite properly.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork webform_googlesheets-3559350
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
kwfinken commentedComment #4
dieterholvoet commentedI tested the MR and it fixes the issue.
Comment #5
dieterholvoet commentedComment #7
dieterholvoet commented