Needs review
Project:
Node Hierarchy
Version:
6.x-2.x-dev
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2012 at 01:15 UTC
Updated:
4 Mar 2013 at 22:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
jbylsma commentedPatch attached.
Comment #2
garretg commentedHello Jonny. Thanks for all your work on Node Hierarchy...
I'm working on upgrading a D6, NH 1.x site right now (to D6, NH 2.1)... and I was seeing several of the issues you describe in this issue. The biggest problem was that child nodes with a lower nid than a parent did not get upgraded properly.
So I'm testing your patch... one thing though... it seems to me to have been generated backwards?
You submitted this bug report and patch in mid 2012. But when I apply it to either the NH 2.1 release, or the latest 2.x-dev, the patches are rejected. And studying the code, those releases seems to already have the context and your additions?
Those codebases were packaged in April 2011 and December 2011. (months before you reported this bug).
I tried applying the patch file with -R... but that didn't work. But I believe it's often not possible... depends on how much context has been included, and the chances of fate.
After puzzling over your patch file for some time, I think I was able to manually reverse and apply your patches... and indeed if I diff my new file backwards with the latest 2.x-dev, I get your patch file.
As for the patches themselves... so far so good! Upgrading my site with your patches in place worked fine.. and it has resolved the "child node with a lower nid than a parent" issue.
Cheers,
-Garret