Allow updating lists when switching from allowed values to allowed values function

Created on 27 April 2017, over 8 years ago
Updated 27 June 2025, about 1 month ago

You are not allowed to update the values in allowed_values for list type fields if the values are in use. This is ensured in list_field_update_forbid. This is good. I have a case though where I want to swap allowed_values for an allowed_values_function.

This patch allowed removing values from allowed_values IF there is an allowed_values_function AND the keys are kept using the existing logic.

Feature request
Status

Needs work

Version

11.0 🔥

Component

options.module

Created by

🇳🇴Norway odegard

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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