- Issue created by @mlncn
- ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
This is true whether "Select List" or "Select List (Cardinality)" is chosen for the widget.
- ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
Possibly relevantโ i am on Drupal 11. (Courtesy of ๐ Automated Drupal 11 compatibility fixes for field_config_cardinality Active )
- Merge request !14Set multiple to false only if field config cardinality is one โ (Open) created by mlncn
- ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
This simple logic change fixes my problem.
In
field_config_cardinality_field_widget_complete_form_alter
the// Implementation for multi select type.
had$cardinality_config >= 1
as the check to setting$elements['#multiple'] = FALSE;
and my merge request here changes that to check that the cardinality equals one, which seems to make sense.My only problem with this fix is that i cannot believe no one reported the problem for seven years, so i feel like i must be missing something?