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
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

ronan - December 12, 2008 - 15:45
Status:patch (to be ported)» fixed

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

#2

System Message - December 26, 2008 - 15:53
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.