I know I had this before but we usually use Chosen to fix such issues for customers:

Reproduce
Go to your user profile, section "Drupal" and try to add user rokr as your mentor. (Yes, that's the complete user name.)
Autocomplete only lists up to 10 results containing "rokr" - and these are obviously quite a lot.

Workaround
Grab the user ID and type [username] ([uid]) to add your mentor in similar cases.

Solution
Either we fix this on a core level (no idea about the implications) or we use a contrib module for this field's configuration (no idea about the update strategy and possibly resulting decisions against more modules). Chosen has a config option for the amount of results.

Comments

hexabinaer created an issue. See original summary.

dddave’s picture

Project: Drupal.org site moderators » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: User account » User profiles
Category: Feature request » Bug report
drumm’s picture

Status: Active » Postponed

#2613430: Mentor autocomplete: 10 results is not enough looks like what we would want. This field is managed by the Entity reference module.

drumm’s picture

YesCT’s picture

apaderno’s picture

10 is probably a too low limit, but there is a bigger issue: The autocomplete uses what entered to find usernames ending with that string. So, if I enter kiam, I don't even get a name starting with k. With a complete username like dalin, it returns all the usernames ending with dalin, instead of returning the only username that exactly matches dalin.

Entering a username starting from the beginning is probably more common. Assuming that what entered is at the end of the username is causing problems, and I cannot imagine doing the same when looking for a node title.

  • drumm committed 495b8fa on 7.x-3.x, dev
    Issue #2613430 by drumm, kiamlaluno: Match mentor autocomplete on starts...
drumm’s picture

Status: Postponed » Active

#1700112: Entity reference list View Pager: Items to display is broken is now RTBC, that’s good enough to deploy to Drupal.org. It leans on Views to configure the number of items to display, so drupalorg needs that View created.

In the meantime, matching on starts with instead of contains is an excellent idea.

  • drumm committed 495b8fa on 2613430-mentor-results
    Issue #2613430 by drumm, kiamlaluno: Match mentor autocomplete on starts...
  • dhanya_girish_zyxware committed 131ffdc on 2613430-mentor-results
    Issue #2613430 - Adds a view to show the mentores in the user profile -...

  • drumm committed 751d617 on 7.x-3.x, dev
    Issue #2613430 by drumm, dhanya_girish_zyxware: Mentor autocomplete: add...

drumm’s picture

Status: Active » Fixed

This has been merged & deployed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.