BUGFIX Fixed "Show specification..." link not working because ModelName had spaces in it

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66791 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-11-26 23:59:05 +00:00 committed by Sam Minnee
parent 96f6ffb74c
commit 811cdb66a3

View File

@ -374,7 +374,7 @@ class ModelAdmin_CollectionController extends Controller {
$specRelations->push(new ArrayData(array('Name' => $name, 'Description' => $desc)));
}
$specHTML = $this->customise(array(
'ModelName' => singleton($modelName)->i18n_singular_name(),
'ModelName' => str_replace(' ', '', singleton($modelName)->i18n_singular_name()),
'Fields' => $specFields,
'Relations' => $specRelations,
))->renderWith('ModelAdmin_ImportSpec');