diff --git a/code/controllers/CMSPageAddController.php b/code/controllers/CMSPageAddController.php index 52761591..b8fcd5f8 100644 --- a/code/controllers/CMSPageAddController.php +++ b/code/controllers/CMSPageAddController.php @@ -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'])) {