Cannot select two users with identical display names

Created on 12 March 2025, 24 days ago

Problem/Motivation

I have an user entity reference field and the two following users:

  • display name 'Foo Bar', username 'foo_bar'
  • display name 'Foo Bar', username 'bar_foo'

When the first user is already selected and I start typing the same display name again, the second user does not appear in the dropdown. When I check the JSON response, it is returned, but Tagify just doesn't show it.

Proposed resolution

Stop using the entity label as Tagify item value, because it is not guaranteed to be unique. Use the entity ID instead. This only seems to be an issue in the user widget.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024