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

CommentFileSizeAuthor
#2 undefined_index_error-2688423-1.patch773 bytesafreeman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

afreeman created an issue. See original summary.

afreeman’s picture

Proposed fix

mbabazi’s picture

Thanks. Patch works on drupal 7.56 with Webform Table Element 7.x-1.7.