From 95c640ae6b5620be83d38e8060317554bc0820ed Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 15 Aug 2016 15:26:39 +1200 Subject: [PATCH] BUG Fix regression in FormField casting --- code/controllers/CMSPageAddController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) {