The error above rises when the getSelectedOptions-function in WidgetBase receives an array of items whereby the items are empty. This occurs when you try to edit the field settings of a field which references an empty vocabulary.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LammensJ created an issue. See original summary.

lammensj’s picture

The last submitted patch, select_or_other-array_flip.patch, failed testing.

DuneBL’s picture

In confirm that this patch is doing the job!!
Thank you

lammensj’s picture

No problem :)

  • legolasbo committed 8adb959 on 8.x-1.x authored by LammensJ
    Issue #2875638 by LammensJ, DuneBL: Warning: array_flip(): Can only flip...
legolasbo’s picture

Status: Needs review » Fixed

Committed and pushed to 8.x-1.x. Thanks for your contribution both!

Status: Fixed » Closed (fixed)

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