Closed (fixed)
Project:
Node Relativity
Version:
master
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2006 at 09:49 UTC
Updated:
13 Apr 2007 at 02:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
JohnG-1 commentedYeah this has been annoying me too. The dirty database I mean - not the module ( ... Relativity Rocks! :)
Comment #2
owahab commentedThe implementation of hook_nodeapi() in relativity has a problem: it assumes that node's parent id will be passed via GET or POST which won't happen in your case, Lebowski.
Plus I checked and found there's an useless, IMO, if statement.
I have done this small patch but didn't test it so please do so and let me know.
Comment #3
JohnG-1 commented+1 quick test indicates this patch allows proper deletion of the relationship from relativity table when a either the parent or child node is deleted. Thanks Omar :)
Comment #4
hbfkf commentedSubscribe.
Comment #5
darius commentedOmar, I think that $node->parent_node gets set in the "load" case. Still, it is probably safe to remove the "if" clause, so that entries where a node has no parents can still get removed. The code was originally written by javanaut, so I don't always understand why things are the way they are...
Committed to the CVS HEAD.
Comment #6
(not verified) commented