my options_allowed_values_function is not working after enabling this module

Created on 27 September 2022, about 3 years ago
Updated 2 September 2025, about 1 month ago

Problem/Motivation

Steps to reproduce

define allowed_values_function in your fieldstorage ex. field.storage.node.field_testselect.yml. and import configuration.
define the function mentioned here to any module file with proper naming. this function can return dynamic options to your select field.
this method is not working as expected because in ui_patterns_settings.module file line-111 for 8.x-2.0-beta13 it is overriding the allowed_values_function setting to null value.

i am not sure but this seems to be happening for all select fields.

any ideas for alternate solution for allowed_values_functions to work?.

Proposed resolution

put some conditions to not to override this settings for all fields.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇮🇳India bmahesh03121

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024