We are using the following patches:
# Notice: Undefined index: value in _multiselect_build_widget_code().
# https://www.drupal.org/node/2527428
- https://www.drupal.org/files/issues/multiselect.fix_.notices.patch
# Multiselect FAPI example does not work
# https://www.drupal.org/node/1921592
- https://www.drupal.org/files/issues/multiselect-FAPI-example-does-not-wo...
# Multiselect in fieldset jQuery selector issue
# https://www.drupal.org/node/2744127
- https://www.drupal.org/files/issues/multiselect_jquery_selector_escape_s...
# Form API #default_value issue
# https://www.drupal.org/node/2745499
- https://www.drupal.org/files/issues/multiselect_default_values_form_api_...

The issue: there is an entity reference field which uses multiselect widget. When I choose something from it and click the Preview button I get
Warning: Illegal offset type in _multiselect_build_widget_code() (line 269 of /var/www/vfsdm/docroot/sites/all/modules/contrib/multiselect/multiselect.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danielangelov created an issue. See original summary.

ShaxA’s picture

Hi, i have found the issue too and have created and applied a patch for it. Problem is that Entity Reference fields come also as an array, the same as other fields

danielangelov’s picture

Status: Active » Closed (fixed)
danielangelov’s picture

Works properly now.

danielangelov’s picture

Status: Closed (fixed) » Reviewed & tested by the community