Needs work
Project:
Related links
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2012 at 20:50 UTC
Updated:
15 May 2012 at 20:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedrelatedlinks.js, line 15
Comment #2
mrfelton commentedTurns out it was actually a problem with vertical_tabs-1.0-rc1 that was causing form_alter to get called twice when it shouldn't. Upgrading to vertical_tabs-1.0-rc2 resolved!
Comment #3
mrfelton commentedSpoke too soon. It is a problem with relatedlinks. The vertical Tabs module retrieves the node form on the node type form in order to work out what fields are available. This causes form_alter to be run twice. This causes the relatedlinks javascript to be added to the node type forms as well as the node forms.
Attached patch checks if the related-links fieldset is actually on the page as a sanity check - since we only want to process the related links if its actually on the page - not just because an implementation of hook_form_alter has been called.
Comment #4
Zen commentedThis looks like something that should be fixed in a/the form_alter.
-K