[6.x] Fix users select dropdown not searching by email - #15128
Merged
jasonvarga merged 3 commits intoAug 7, 2026
Conversation
The users fieldtype's Select Dropdown mode already sends each user's email to the browser, but only searched the title field client-side, which falls back to email only when a user has no name set. Users with a name couldn't be found by searching their email. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBwXt1YibnzZCneXjGCqt7
edalzell
marked this pull request as ready for review
August 5, 2026 18:37
jasonvarga
enabled auto-merge (squash)
August 6, 2026 19:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #15127. The users fieldtype's Select Dropdown mode already sends each user's email to the browser, but the dropdown's client-side search only matched against
title, which falls back to email only when a user has no name set — so users with a name couldn't be found by searching their email.Adds an optional
searchKeysprop to the sharedComboboxcomponent (fuzzysort'skeysoption), and wires it up in the relationship select field to searchtitle+emailspecifically for theusersfieldtype. Other relationship types (entries, taxonomies, etc.) are unaffected.Test plan
SelectField.test.jscovering the newsearchKeysbehavior