Node hierarchy lost if other modules load/update nodes
| Project: | Node Hierarchy |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
I'm using Node Hierarchy and Link Checker on my multilingual website. Link Checker can automatically update nodes containing erroneous links (301 redirects) to fix them. Doing so, it creates a new revision of the node. The problem is that nodes updated by Link Checker seem to lose their parent node info, going back to "-NONE-".
The strange bit is that parent node information is supposed to be attached to the node - not revisions - and is stored in a separate database table. When I edit nodes with a regular user, I have no issues. It seems that the only nodes affected are the ones that were automatically updated by Link Checker (the revision author is then set to "Anonymous" when Link Checker have processed it, even if anonymous users are not allowed to edit content on my website).
I'm not sure if it comes from Link Checker or Node Hierarchy, so I posted an issue on the other project as well: #566024: Automatic update breaks node hierarchy

#1
Marked #566024: Automatic update breaks node hierarchy as a duplicate for the maintainer to be able to take a look about my thinking. Without further analysis this should be a
hook_nodeapi()bug in Node Hierarchy. Should be located in the 'update' or 'load' condition as other node modules not not have this issue with linkchecker.#2
#3