Entity reference list display not working with autocomplete widget (but ok with others)

Created on 18 December 2018, almost 6 years ago
Updated 22 February 2023, almost 2 years ago

Steps to reproduce:

A-Add some fields to the User entity
1-Add the 'First Name' field (brut text)
2-Add the 'Last Name' field (brut text)
3-Add the 'Company' field (Entity Reference to Company content type)

B-Create the view
1-Create a user's view of type "Entity Reference"
2-Add some fields: name, first name, last name
3-To make sure it will works, in the format settings dialog, click on all fields for the search fields option
4-Add a contextual filter based on the Company field: Default Value > "Content ID from the URL"

C-Add a User's ER field to the Company content type
1-In the manage field page, add a new User's Entity Reference field [ILLIMITED VALUES]
2-In the "Reference Type" Setting choose the View>Display we just created
3-In the display form page, choose "Auto-completion"

D-Encode some Users's having the company "MyCompany" as a value of their company's field

Result
1-Go to the edit page of "MyCompany"
2-Try to add a User by typing a letter=> Autocompletion will not work

BUT, if you change the autocompletion widget into a checkbox widget, it will works as only the users of this company will be listed as check box items.
This is clearly an issue with the autocompletion widget

πŸ› Bug report
Status

Active

Version

9.5

Component
ViewsΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡§πŸ‡ͺBelgium DuneBL

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.

  • πŸ‡ΊπŸ‡ΈUnited States bob.hinrichs

    Confirming, this is a bug. Sounds like for a while. My same issue, very simple to reproduce: create an entity on the system (content type, etc.) and use an entity reference field in it, and make it an autocomplete field. Create an entity ref View and use that View for the field. If you put a filter on the View, it is not honored in the autocomplete.

Production build 0.71.5 2024