Closed (duplicate)
Project:
Workspace
Version:
6.x-1.4-rc1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2009 at 00:29 UTC
Updated:
28 Oct 2009 at 07:08 UTC
When creating a node type, Drupal says: « Underscores will be converted into hyphens when constructing the URL of the create content page. »
But in the Workspace module, the "Add new item" form, just passes the $node_type without converting "underscores" into "hyphens". Resulting a blank page.
This patch corrects this issue. 1 line changed !
if (isset($options[$node_type])) {
- drupal_goto('node/add/' . $node_type);
+ drupal_goto('node/add/' . str_replace('_', '-', $node_type));
}
| Comment | File | Size | Author |
|---|---|---|---|
| workspace.patch | 448 bytes | Michel Poulain |
Comments
Comment #1
Michel Poulain commentedTo be more precise...
The actual node add url with Workspace :
example.com/node/add/node_type[WRONG]With this patch :
example.com/node/add/node-type[GOOD]Comment #2
frank ralf commentedDuplicate of #344585: "Add new item" feature produces bad URLs for CCK content types. Please follow that thread, thanks.