Skip to content

users field type in dropdown mode can't search by email #15127

Description

@edalzell

Bug description

We have a users field in a fieldset in default drop-down mode. Most of the users don't have names, only emails. In the drop down you see a mix of names and emails because some users do have name but those that don't fallback to email.

However you try to find a user by e-mail (because you can actually see it in the list), it's not found.

How to reproduce

  1. users fieldtype
  2. have users with only email
  3. see the users in the drop down
  4. search for one of them by email

Logs

Environment

Environment
Laravel Version: 13.20.0
PHP Version: 8.5.8
Composer Version: 2.10.1
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: null
Cache: redis
Database: mysql
Logs: stack / daily
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: LINKED

Livewire
Livewire: v4.3.3

Statamic
Addons: 13
License Key: Not set
Sites: 4 (zakat.org (EN), zakat.org (AR), zakat.org (TR), Mobile App)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.25.0 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.17.0
jacksleight/statamic-bard-mutator: 3.0.5
jacksleight/statamic-distill: 1.2.0
marcorieser/statamic-livewire: 5.3.1
statamic-rad-pack/runway: 9.5.3
statamic-rad-pack/typesense: 3.2.1
statamic/seo-pro: 7.12.3
transformstudios/events: 6.1.2
transformstudios/front: 3.1.2
transformstudios/metal-prices: dev-2210-major-update-ai-model-in-prime
transformstudios/neon: dev-2210-major-update-ai-model-in-prime
transformstudios/prime: 6.5.1
transformstudios/review: 6.0.0

Installation

Fresh statamic/statamic site via CLI

Additional details

The workaround is use typeahead mode as that searches the email field as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions