EntityReferenceOverrideEntityFormatter::settingsForm calls entity_field.manager::getFieldDefinitions with $target_bundles = NULL when field reference method is a view

Created on 30 June 2021, almost 4 years ago
Updated 27 July 2023, almost 2 years ago

Problem/Motivation

If you have an entity reference override field which is set to use the 'view' as the reference method (instead of the default/content type method), if you try to set the Display Settings of the field to Rendered Entity, you can get an error because the entity field manager is called with $target_bundle set to null.

Steps to reproduce

1. Configure an ERR field to use a View reference method
2. Configure the ERR field Display Format to Rendered Entity
3. Observe error in PHP logs.

Proposed resolution

Update settingsForm code to work when the View Reference Method is selected, as well as Default reference method.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom nicrodgers Monmouthshire, UK

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024