- Issue created by @lazzyvn
- 🇮🇳India sourav_paul Kolkata
I've tested it on drupal 10.3 with module version 4.1 this is working as expected even with default value of select list.
Attaching ss...
Please provide proper issue reproducing steps..
- Assigned to sourav_paul
- First commit to issue fork.
- Merge request !17Update AllowedValuesConstraintValidator validate() method → (Open) created by ikphilip
- 🇺🇸United States ikphilip Charlotte, NC, USA
I found this error except using module select_or_other 4.2.0 and Drupal 10.4.1.
Steps to Reproduce
- Install Drupal 10.4.1
- Install select_or_other 4.2.0 (or dev-4.x)
- Enable select_or_other
- Create a new field (configurable entity like Node or Content Block).
- Selection List field, List (text)
- Create at lest 2 allowed values.
- Check "Set Default Value" and choose one of the created allowed values.
- Save settings. Error should occur.
Proposed Resolution
Adjust the code in
AllowedValuesConstraintValidator::validate()
to more closely match the way it's done in Core.See Merge Request.