When using views to support the list of nodereference items if the item is not present in the list of _nodereference_potential_references a validation error occurs on submit. This post may very-well be a valid reference and is only scoped by the view reference. The attached patch makes this option a configuration option for the reference.


christianchristensen’s picture

christianchristensen’s picture

cravecode’s picture

Thank you so much for this patch, works great

havelinux’s picture

@christianchristensen thank you very much for this patch !!! You have saved me many "madness hours".

tangent’s picture

Status: Needs review » Reviewed & tested by the community

This patch works for me. After upgrading to views 3.x it was impossible to add more than 10 items to a node reference field, I suppose due to the autocomplete limit.

fonant’s picture

Applying the patch in #1, and ticking new new nodereference option "Enforce view items in reference list." fixes the problem I had where, like tangent, I could only add ten items to an "unlimited" nodereference field.

lvaldeon’s picture

Works like a charm ! Thank you Chris