The current implementation of the autocomplete fields have hardcoded values of 10 for a limit. This patch changes this and adds variables user_reference_autocomplete_limit and node_reference_autocomplete_limit which default to 10. This means that other modules can override this limit, and the current implementation is not affected.

#8 2.png16.8 KBRenatoG
#8 1.png18.58 KBRenatoG
#2 references-1423682-2.patch3.91 KBDmitriy.trt
PASSED: [[SimpleTest]]: [MySQL] 40 pass(es). View
references-limit-override.patch1.16 KBacbramley
PASSED: [[SimpleTest]]: [MySQL] 40 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


yched’s picture

Status: Active » Needs work

This would rather make sense as a widget setting on the autocomplete widgets.

As explained in the project page, the References project is deprecated in favor of Entity Reference, and is mostly in 'bugfix only' mode.
I would probably commit a patch, but won't work on this myself.

Dmitriy.trt’s picture

Status: Needs work » Needs review
3.91 KB
PASSED: [[SimpleTest]]: [MySQL] 40 pass(es). View

Patch adds limit option to both autocomplete widgets.

acbramley’s picture

#2 looks great!

Alex Andrascu’s picture

Assigned: Unassigned » Alex Andrascu
coredumperror’s picture

Issue summary: View changes

#3 works great! Really sad to see that it's gone uncommitted for so long.

RenatoG’s picture

Component: Miscellaneous » Code: node_reference
Assigned: Alex Andrascu » RenatoG
Status: Needs review » Reviewed & tested by the community
Issue tags: +ciandt-contrib

Hi people.

I applied the patch and works good for me.



  • RenatoG committed c74202f on 7.x-2.x authored by acbramley
    Issue #1423682 by acbramley, Dmitriy.trt, coredumperror, yched, RenatoG...
RenatoG’s picture

Component: Code: node_reference » Miscellaneous
Status: Reviewed & tested by the community » Fixed
18.58 KB
16.8 KB


Commited in dev branch.

Good Work and Good Weekend.


Status: Fixed » Closed (fixed)

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