Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
widget altered #1
I changed the widget to cure a common problem we're facing with the super_nodereference.
With the latest commit I force the widget to lookup the primary field's value if you edit the node.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I looked at your diff and I see most of the code is added to the uper_nodereference_widget() function. This shouldn't be necessary. The primary field is already (supposed to be) filled by the super_nodereference_autocomplete_value() function based on the referenced nid.
In my branch there is the potential for an error message if a referenced node (for example Paul Smith) is changed while the team node is on the edit form (after the default value is generated). I don't think this is the issue you are trying to resolve.
Can you let me know the detailed configuration that might be related to super_nodereference_autocomplete_value() not retrieving the current Primary Field value?