Problem/Motivation
Follow-up for #2174633: View output is not used for entityreference options: This covers the display of items previously selected in an autocomplete text field.
When the options for selection in an entity auto-complete relation text field are controlled via a view, the view fields are not used to display the selected entity on subsequent edits of the same entity; instead, the entity label is shown. This is a regression from Drupal 7.x.
Expected Results
In step 6, the text in the field should match what was configured in the view, the same way as it appeared when the selection was made in step 4.
Actual Results
In step 6, the text in the field is equal to the entity label, even though that's not the value that was in the field when the selection was made in step 4.
Steps to reproduce
- Create a view with an entity reference display and set it up to display more than one field as an inline field.
- Add an entity reference field using the auto-complete text field, using the entity reference view display, to a content type.
- Visit the node add form.
- Fill out the field that was added in step 2; this will show the selected entity as configured in the View (using the selected inline fields).
- Save the node
- Open the edit back up for editing.
- Look at the value that appears in entity reference field that was populated in step 4.
Proposed resolution
TBD
Remaining tasks
Update summary
Clean up MRs
User interface changes
NA
API changes
TBD
Data model changes
TBD
Release notes snippet
NA