How to reproduce:
- Make a webform (e.g. with a single textfield)
- Go to the 'Results' tab of this webform
- Under the 'Results' tab, go to the 'Download' tab of this webform
- Go to an other page
- The following message should appear:
Notice: Undefined index: #title in theme_webform_inline_radio() (line 2594 of /sites/all/modules/webform/webform.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 1287472-8.patch | 654 bytes | jelle_s |
| #6 | 1287472.patch | 599 bytes | jelle_s |
Comments
Comment #1
markusbroman commentedsubscribe
Comment #2
wipeout_dude commentedsubscribe
Comment #3
KIGA commentedsubscribe
Comment #4
kleve commentedAdding if (isset($element['#inline_element'])) before line 2594 removes the error message. Not sure if this is a good solution or if the #title is supposed to exist every time?
Comment #5
kleve commentedsubscribe
Comment #6
jelle_sAdded patch based on comment #4 by @Kleve
patched from 7.x-1.13
Comment #7
knv commentedMay be checking the existence of #title key in array and short circuit the condition is a better solution. Something like this:
if (array_exists_key('#title', $variables['element']) && isset($variables['element']['#title']))
Comment #8
jelle_sRewritten patch based on #7
Comment #9
shawn dearmond commentedI noticed this error as well. Patch worked for me.
Comment #10
quicksketchThis issue was already fixed in #1357188: Undefined index: #title in theme_webform_inline_radio().