Notice: Undefined index: aslist в функции webform_select_options_ajax() (строка 860 в файле /sites/all/modules/webform/components/select.inc).

Comments

Stevel’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please explain what you were trying to do when you received this error?

oriol_e9g’s picture

Status: Postponed (maintainer needs more info) » Active

I have detected the same problem:

Notice: Undefined index: aslist a webform_select_options_ajax() (línia 861 de /var/local/html/drupal7/node1/sites/all/modules/webform/components/select.inc).

How to reproduce the Notice:

1. Create your own module:

function mymodule_webform_select_options_info() {
    $items = array();
    $items['my_options'] = array(
        'title' => t('My options'),
        'options callback' => '_webform_get_my_options',
    );
    return $items;
}

function _webform_get_my_options() {
    return array(
        1 => 'option 1',
        2 => 'option 2',
        3 => 'option 3',
    );
 }

2. Create a new webform and add a select option

3. Select your new pre-built list: My options

4. Your list is loaded correctly but if you go to the watchdog you can see the notice

oriol_e9g’s picture

Project: Webform Views Select » Webform
Version: » 7.x-4.0

  • DanChadwick committed 16b1b55 on 7.x-4.x
    Issue #2296819 by DanChadwick: Fixed Notice: Undefined index: aslist...
  • DanChadwick committed 5ded258 on 8.x-4.x
    Issue #2296819 by DanChadwick: Fixed Notice: Undefined index: aslist...
danchadwick’s picture

Status: Active » Fixed
StatusFileSize
new970 bytes

Thanks. Committed to 7.x-4.x and 8.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.