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.

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
StatusFileSize
new3.91 KB

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.

Congratz!

Thanks.

  • 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
StatusFileSize
new18.58 KB
new16.8 KB

Fixed.

Commited in dev branch.

Good Work and Good Weekend.

Regards

Status: Fixed » Closed (fixed)

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