Cannot add value to field with CARDINALITY_UNLIMITED

Created on 15 May 2025, 6 months ago

How to reproduce:
- Create a field whose cardinality is set to CARDINALITY_UNLIMITED (or limited to more than one value).
- Create an entity and give the pluginreference field a single value.
- Edit that same entity and add another value to the pluginreference field.

Nothing new appears in the widget, and the log shows an error similar to: "...array_flip(): Can only flip string and integer values..."

The patch at https://www.drupal.org/project/pluginreference/issues/3473082 🐛 Unnecessary validate in select type widgets Fixed breaks handling of multi-value fields (and possibly more).

The validation check itself is useful, but it must not prevent submitConfigurationForm() from running.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇷🇺Russia lukasss Novoukrainskoe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024