mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Made use of Convert::raw2att() before returning the ModelName for Import spec fields
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66793 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
811cdb66a3
commit
45c0564c9d
@ -374,7 +374,7 @@ class ModelAdmin_CollectionController extends Controller {
|
|||||||
$specRelations->push(new ArrayData(array('Name' => $name, 'Description' => $desc)));
|
$specRelations->push(new ArrayData(array('Name' => $name, 'Description' => $desc)));
|
||||||
}
|
}
|
||||||
$specHTML = $this->customise(array(
|
$specHTML = $this->customise(array(
|
||||||
'ModelName' => str_replace(' ', '', singleton($modelName)->i18n_singular_name()),
|
'ModelName' => Convert::raw2att(str_replace(' ', '', singleton($modelName)->i18n_singular_name())),
|
||||||
'Fields' => $specFields,
|
'Fields' => $specFields,
|
||||||
'Relations' => $specRelations,
|
'Relations' => $specRelations,
|
||||||
))->renderWith('ModelAdmin_ImportSpec');
|
))->renderWith('ModelAdmin_ImportSpec');
|
||||||
|
Loading…
Reference in New Issue
Block a user