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.

Files: 
CommentFileSizeAuthor
#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

Comments

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
FileSize
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.