- Issue created by @sathishdevan
- Merge request !5The code fixes issue when there is a recursive entity reference implementation. → (Open) created by sathishdevan
- Status changed to Needs review
11 months ago 10:16am 13 May 2024
This widget is not working for the entity reference field in a paragraph which is inturn referenced inside a content type.
Content Type > Entity Reference > Paragraph Type > Entity Reference(Trying to apply the widget here) > Node
Now, if we apply the Flexible add more widget to the field_recent_articles and try to use plus icon, it is removing items which are already added in the reference.
We should change the below code in the widget src/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php to work on recursive entity references.
if (!empty($allUserInputValues[$field_name])) {
Needs review
3.0
Code