When a type has an underscore, its nodes can't be set as children on creation

peterzoe - April 27, 2008 - 12:16
Project:Node Relativity
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed
Description

hi there,

i have I problem with node relativity trying to call child nodes when the custom content type (type) of the child note contains an underscore. node relativity creates an url like .../node/add/content_type/parent/xx for a content type having the type 'content_type'. drupal call up url would be .../node/add/content-type/parent/xx though. please refer to this related issue: http://drupal.org/node/206670.

thanks for any help.
kind regards, Peter.

#1

slip - September 29, 2009 - 13:01
Title:underscores and hyphens» When a type has an underscore, its nodes can't be set as children on creation
Priority:normal» critical
Status:active» needs review

This should do the trick. Allows you to add a node as a child when its type contains an underscore. It works in a similar fashion to patches in the link you posted.

AttachmentSize
relativity-251802-1.patch 917 bytes

#2

davea - November 15, 2009 - 14:34
Status:needs review» closed

I have been testing this patch in production for months now and I just received CVS access today.

I have comitted this to the latest 6.x.1.x-dev version.

Thanks!
DaveA

 
 

Drupal is a registered trademark of Dries Buytaert.