mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUG Fix regression in FormField casting
This commit is contained in:
parent
5f73d3454e
commit
95c640ae6b
@ -24,7 +24,7 @@ class CMSPageAddController extends CMSPageEditController {
|
||||
$type->getField('AddAction'),
|
||||
$type->getField('Description')
|
||||
);
|
||||
$pageTypes[$type->getField('ClassName')] = $html;
|
||||
$pageTypes[$type->getField('ClassName')] = DBField::create_field('HTMLText', $html);
|
||||
}
|
||||
// Ensure generic page type shows on top
|
||||
if(isset($pageTypes['Page'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user