Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I just got this notice, by editing an existing options component and updating this to use a custom options list callback. Notice was shown after save.
Notice: Undefined index: aslist in webform_select_options_ajax() (line 792 of sites\all\modules\webform\components\select.inc).
[void] webform_select_options_ajax('assessment')
#516 call_user_func_array('webform_select_options_ajax', Array)
#21 menu_execute_active_handler()
Comment | File | Size | Author |
---|---|---|---|
#7 | webform_empty_form_state.patch | 713 bytes | quicksketch |
Comments
Comment #1
Alan D. CreditAttribution: Alan D. commentedAnd a second on page two, the final page, of a two step form that is using save draft functionality.
Notice: Undefined index: submitted in webform_client_form_pages() (line 2538 of sites\all\modules\webform\webform.module).
#1460 webform_client_form_pages(Array, Array)
#859 form_execute_handlers('submit', Array, Array)
#376 drupal_process_form('webform_client_form_46', Array, Array)
#131 drupal_build_form('webform_client_form_46', Array)
#1630 drupal_get_form('webform_client_form_46', stdClass (object), Array, )
[void] webform_node_view()
#850 call_user_func_array()
#1386 module_invoke_all()
#1284 node_build_content()
#2567 node_view()
#1406 node_view_multiple()
#2638 node_show()
[void] node_page_view()
#516 call_user_func_array()
#21 menu_execute_active_handler()
Totally not critical as everything runs as normal :)
Comment #2
Alan D. CreditAttribution: Alan D. commentedSteps to replicate the second notice, ensure that there are no input components prior to the first page step in any multistep form, and step though the first empty page.
Coming across this as the first page in a few surveys were just introductory text.
Comment #3
Alan D. CreditAttribution: Alan D. commentedNearing deployment so I had to hack the webform.module :(
Comment #4
quicksketch@Alan D, that's actually doesn't look like a bad hack. It's either that or making a "fake" element on the first page to populate $form_state['values']['submitted']. I've seen other users work around this problem by adding a hidden (or "Private") field on the first page, but it's obviously a work around. I think your solution looks pretty good by comparison.
I'm moving this to needs review, since it's a valid suggestion.
Comment #5
Alan D. CreditAttribution: Alan D. commentedlet me know if you want a patch - usually don't bother with trivial fixes like this :)
Comment #6
drupov CreditAttribution: drupov commentedThis should get commited...?
Comment #7
quicksketchThanks Alan, committed to 6.x-3.x, 7.x-3.x, and 7.x-4.x.
Comment #9
markosaurus CreditAttribution: markosaurus commentedHi Alan D,
Just got the same thing running D7.19 and Webforms 7.x-3.18.
Created my own module to query some stuff a custom content type in the database and output it to webforms as a prepopulated list for use in a select list.
Got this in my Drupal log - Notice: Undefined index: aslist in webform_select_options_ajax() (line 792 of SITENAME\sites\all\modules\webform\components\select.inc).
Funnily enough it was working yesterday with only one content node, when I added another this morning, this happened and nothing is output.
Have you rolled that patch into the dev Alpha 6? If so I'll give that a go. Otherwise I'll have to try and dig deeper myself.
Thanks,
Mark