Skip to content

Cardinality number wrongly shown for list fields with unlimited cardinality #7070

@argiepiano

Description

@argiepiano

Description of the bug

When you edit an existing list field with unlimited cardinality, the edit UI wrongly shows the cardinality number. See image below.

Image

Steps To Reproduce

  1. Add a list field (any list type) to a content type
  2. Set the cardinality to unlimited and save
  3. Edit the field and open the fieldset for Global Settings
  4. The cardinality still shows as "Unlimited" 👍🏽 , but the cardinality number "1" is also shown 👎🏽

If you set cardinality to limited and then again to unlimited, the cardinality number is correctly hidden.

Actual behavior

The cardinality is shown.

Expected behavior

The cardinality number should not be shown when editing a list field with unlimited cardinality.

Additional information

This only affects List fields. Other fields seem to work OK.

My guess is that the js for the options widget somehow interferes with the #states javascript for the cardinality fields.

Add any other information that could help, such as:

  • Backdrop CMS version: 1.33.1
  • PHP version: 8.3
  • Browser(s) and their versions: Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions