Can't remove allowed types with a config override

Created on 24 May 2023, over 1 year ago

Problem/Motivation

We use a config override to change the allowed target bundles and set the existing ones to FALSE in the hope they'd get filtered out but we can only add extra paragraph types to a field's config.

Steps to reproduce

Have a config.factory.override service that disables some allowed paragraph bundles on a field's config. When you go to add a value for that field, the disabled options are still visible.

Proposed resolution

Filter the configuration in getSortedAllowedTypes() so target_bundles set to FALSE are removed.

Remaining tasks

Review / test patch.

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom mjpa

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

Comments & Activities

Production build 0.71.5 2024