Problem:
Undefined index error messages displayed when viewing an individual webform submission for forms that include at least one grid component.
Cause:
Line 673 of webform_table_element.module assumes that each child element of $renderable has #webform_component set. This is not the case for grid components that define their own questions and options.
Steps to reproduce:
Create a new webform
Add a grid component & save
On grid component settings screen put the following in the options field:
0|Zero
1|One
2|Two
3|Three
Put the following in the questions field:
who|Who
what|What
when|When
where|Where
Save component.
View webform, fill in grid values & submit.
View submission
Comment | File | Size | Author |
---|---|---|---|
#2 | undefined_index_error-2688423-1.patch | 773 bytes | afreeman |
Comments
Comment #2
afreeman CreditAttribution: afreeman commentedProposed fix
Comment #3
mbabazi CreditAttribution: mbabazi commentedThanks. Patch works on drupal 7.56 with Webform Table Element 7.x-1.7.