Disabled text formats appear in the list of allowed formats in field config

Created on 4 November 2024, about 2 months ago

Problem/Motivation

Since πŸ› Disabled text formats can't be seen in the GUI Fixed , disabled text formats appear in field config to be selected as allowed for a formatted text field. Of course, if you choose a disabled format, it doesn't work, but they shouldn't appear at all.

Disabled format:

Field config:

Empty options:

Steps to reproduce

  1. Install Drupal 10.4 or 11.1
  2. Create a text format and disable it
  3. Edit an existing formatted text field
  4. See the disabled format is listed
  5. Select it as the only allowed format
  6. Edit a node of this type and see there is no format selected

Proposed resolution

Only show enabled formats as allowed.

Remaining tasks

  1. Create MR for fix
  2. Add tests
  3. Review
  4. Commit

User interface changes

As above.

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Active

Version

11.1 πŸ”₯

Component

filter.module

Created by

πŸ‡¦πŸ‡ΊAustralia pameeela

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

Comments & Activities

Production build 0.71.5 2024