Download & Extend

Wrong shortcut "create new child" links in node's children menu.

Project:Node Hierarchy
Version:6.x-1.1
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The bug appears when node type has "_" characters in its name (like "my_nodetype"). Drupal somehow changes it to "-" in URL (to "my-nodetype"), nodehierarchy doesn't, that is why links "create new child" don't work.

Below I present solution to this problem:

file: nodehierarchy_theme.inc
diff original_file modyfied_file:
85a86
> $key = str_replace("_","-",$key);

Comments

#1

Status:patch (to be ported)» fixed

Fixed in dev (both 5 and 6). Thanks for finding this.

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.