Needs review
Project:
Links Package
Version:
5.x-1.7
Component:
Code: links.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2007 at 15:53 UTC
Updated:
18 May 2009 at 16:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
chromeyellow commentedA good patch, but the underlying issue still may be the one noted at http://drupal.org/node/74016#comment-167964 ...
Briefly, links_load_links_for_node only needs to be called once, during the 'load' component on links_related_nodeapi. That loads the link info into the node object, after which it is available like everything else in a $node. However, as it stands the module persists in loading link data everytime it's needed, rather than grabbing the data from the node object.
Sys and I traded notes on this but it fell off the radar, buried in a comment in a 4.7 bug (that may have been a side-effect of all those unnecessary queries). Also, I had only had time to specifically analyse the links_related side of things.
At any rate, this patch would be useful failsafe - but the underlying code error still needs tending...
Comment #2
bobooon commentedThe patch above failed for the latest release for me, attached is just an updated patch that should update successfully.
Comment #3
bobooon commentedAttaching patch...
Comment #4
bobooon commentedHere is an updated patch which prevents a form error when updating an existing link.