Closed (fixed)
Project:
Node access node reference
Version:
6.x-1.13
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2011 at 17:07 UTC
Updated:
7 Oct 2011 at 12:02 UTC
After hours of tracing, I found the problem: the $parent_reference was unset to null after a child iteration is done, which causes the next child to be parent-less.
The fix is really simple, just move the assignment of $parent_reference into the operation processing loop:
foreach ($operations as $operation) {
// move into this loop
$parent_reference = $reference;
Comments
Comment #1
danielb commentedI almost cried when I saw this issue title, because I knew it would take me hours and hours to figure it out.
If you're right about this... you're a champion...
Comment #2
danielb commentedthanks