New field with limited cardinality cannot be created.

Created on 2 November 2023, 8 months ago

Problem/Motivation

Trying to create a new field while having entities of a bundle in the database ends up in a failure.

Steps to reproduce

* Create an entity type (or use rdf_entity).
* Create a bundle in that type.
* Create an entity of that bundle.
* Try to add a text field or any field type in that bundle but with limited cardinality.

Expected result:
The form is submitted successfully.
Actual result:
An error saying that there is 1 entity with more than the cardinality selected is raised.

Proposed resolution

Remove the cardinality check when creating the field.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece idimopoulos

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

Comments & Activities

Production build 0.69.0 2024