Support Referencing the same entity multiple times

Created on 31 May 2023, over 1 year ago
Updated 23 September 2024, 2 months ago

Problem/Motivation

This module works beyond the original use-case of adding product line items to an order. We use it anywhere Entity Browser would be considered overkill. Unfortunately, Inline entity form has it hard coded to not allow the same existing entity to be added twice.

This was added in this commit https://git.drupalcode.org/project/inline_entity_form/-/commit/087b72bf3... and #1526084: Abilty to add existing entities β†’

Steps to reproduce

1. Add an existing entity using the add existing entity button.
2. Attempt to add the same entity a second time.

Notice the second time a form validation check blocks you.

Proposed resolution

Remove the hard coded bits that block a user from adding the same entity multiple times and return that control to the field widget configuration.

Remaining tasks

Discuss & implement.

User interface changes

This will add the UI back from core that allows a user to enable the same entity to be added multiple times.

API changes

none.

Data model changes

none.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States frob US

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024