incorrect 'Add child'-URL if name of node type contains underscores

wallebart - May 8, 2008 - 20:55
Project:Outline
Version:6.x-0.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

To build the node/add URL for node types with underscores in the name the underscores must replaced by hypens.

#1

wallebart - May 8, 2008 - 21:08
Status:active» needs review

As in book module the URL should built like

line 101     $links['book_add_child']['href'] = 'node/add/'. str_replace('_', '-', $child_type);
line 105     $links['book_add_child']['href'] = 'node/add/'. str_replace('_', '-', $child_type_book_default);

Unfortunately my cvs doesn't work at the moment, therefore I'm not able to submit a real patch.
greetings

#2

beginner - August 14, 2008 - 07:54
Status:needs review» fixed

Thanks wallebart for the report and the solution.

The fix will be part of the upcoming alpha1 release.

#3

Anonymous (not verified) - August 28, 2008 - 08:02
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.