Closed (fixed)
Project:
e-Commerce
Version:
6.x-4.x-dev
Component:
product
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2009 at 09:40 UTC
Updated:
25 Feb 2009 at 11:40 UTC
Content type names can contain underscores, but not hyphens. However, in content_types.inc, underscores are converted into hyphens when constructing the URL of create content pages?! After replacing underscores in content names with hyphens:
ec_product.module line 398
$type_url_str = str_replace('_', '-', $type);
$out = '<dt>'. l($name, "node/add/$type_url_str/$ptype", array('title' => t('Add a !s.',
array('!s' => $name)))) .'</dt>';
links at /node/add/$type/listing for content type names with underscores work as expected.
Comments
Comment #1
gordon commentedThanks for pointing this out. Your solution only fixed the first occurance. I have gone through the product and product types to fix this issue.
Thanks.