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.

Comments

Thank you so much for this patch, works great

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

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.

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.

Works like a charm ! Thank you Chris