BUG Fix regression in FormField casting

This commit is contained in:
Damian Mooyman 2016-08-15 15:26:39 +12:00
parent 5f73d3454e
commit 95c640ae6b

View File

@ -24,7 +24,7 @@ class CMSPageAddController extends CMSPageEditController {
$type->getField('AddAction'), $type->getField('AddAction'),
$type->getField('Description') $type->getField('Description')
); );
$pageTypes[$type->getField('ClassName')] = $html; $pageTypes[$type->getField('ClassName')] = DBField::create_field('HTMLText', $html);
} }
// Ensure generic page type shows on top // Ensure generic page type shows on top
if(isset($pageTypes['Page'])) { if(isset($pageTypes['Page'])) {