Follow-up for #2174633: View output is not used for entityreference options: This covers the display on the form of already selected items.
When an entity relation field displays options via a view the view fields are not used to display the selected entity, instead the entity label is shown. This is a regression from Drupal 7.x.
Steps to reproduce
- Create a View with an entity reference display and set it up to display more then one field as an inline field
- Add an reference field to a content type that uses this entity reference display
- Add a node and fill out the field -> this will show the selected entity as configured in the View (using the selected inline fields)
- Save the node
- Edit the node
- Look at the selected value for the reference field
Expected value:
The entity is shown as configured in the View and the same way as it was shown when the selection was made
Actual value:
The entity label