Active
Project:
Node Hierarchy
Version:
7.x-2.x-dev
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2010 at 16:52 UTC
Updated:
28 Jul 2012 at 13:53 UTC
Hi,
I'm using node clone with node hierarchy. I can easily clone a child node and it appears where it should. The problem is that when I save the new node, the old node's hierarchy data gets lost. Please help investigating.
Thanks
Comments
Comment #1
zeezhao commentedSee this post for some insight into why: http://drupal.org/node/621662#comment-3297072
It has some extra fields that need to be set. So I believe node_clone needs to reflex this.
Comment #2
rvarkonyi commentedYeah, I was involved in that conversation too.
Eventually I solved my problem a different way, not using node_clone but using Drupal hooks. What I don't understand in node_clone is that why it has modified the original node and couldn't figure it out in the code either because nothing seems to want to touch it.
Comment #3
pwolanin commentedComment #4
jlea9378 commentedI am experiencing the same problem when using Node Clone. When cloning a page, it whacks the node hierarchy assignment of the original page. This is very annoying and makes it more or less impossible to use this module without wreaking havoc on my site. =(
Is there a patch to correct this behavior?
Comment #5
jlea9378 commentedAny update on this issue?
Comment #6
zrodimel commentedAny update?
Comment #7
pwolanin commentedThis sounds like a bug with Node Hierarchy. Node Clone depends on e.g. being able to do a node_load() and node_save() on a node to create a new one. If a module depends e.g. on form submission to get the correct data, it's a bug.