Wrong shortcut "create new child" links in node's children menu.
wpiatkowski - December 8, 2008 - 10:13
| Project: | Node Hierarchy |
| Version: | 6.x-1.1 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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);

#1
Fixed in dev (both 5 and 6). Thanks for finding this.
#2
Automatically closed -- issue fixed for two weeks with no activity.