Download & Extend

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

Project:Outline
Version:6.x-0.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

Status:needs review» fixed

Thanks wallebart for the report and the solution.

The fix will be part of the upcoming alpha1 release.

#3

Status:fixed» closed (fixed)

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