In the current dev version is possible to make a node to be child of its successor which cause a lot of issues like infinite recursion and etc.

Comments

boyan.borisov’s picture

StatusFileSize
new401 bytes

As far as I can see this is supposed to ba handled by there is typo (I guess):

function _nodehierarchy_tree_data($result, $exclude = NULL, $allowed_types, $depth, $previous_element = array()) {
  $remnant = NULL;
  $tree = array();
  $enabled_tree = TRUE;
  $exclude = NULL;

After I removed $exclude = NULL; it works fine for me.

boyan.borisov’s picture

Status: Active » Needs review
boyan.borisov’s picture

StatusFileSize
new1.07 KB

I created a new patch which is supposed to handle all the children of the excluded node.

boyan.borisov’s picture

StatusFileSize
new1.07 KB

removing a trailing white spaces

solvita’s picture

Hi. Seems that this relates to the previously reported issue #1955860: node can be made a parent to itself.

roderik’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#1955860: node can be made a parent to itself

Yes it seems so, and it seems to me that #1955860-1: node can be made a parent to itself is cleaner code.