From e688e0687e1f78ddae3665a0d494d40ec718bf62 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 6 Oct 2009 03:13:00 +0000 Subject: [PATCH] BUGFIX: Fix updateCMSFields() being called twice on BlogEntries --- code/BlogEntry.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/BlogEntry.php b/code/BlogEntry.php index 8099135..1516988 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -68,8 +68,10 @@ class BlogEntry extends Page { $firstName = Member::currentUser() ? Member::currentUser()->FirstName : ''; $codeparser = new BBCodeParser(); - + + SiteTree::disableCMSFieldsExtensions(); $fields = parent::getCMSFields(); + SiteTree::enableCMSFieldsExtensions(); if(!self::$allow_wysiwyg_editing) { $fields->removeFieldFromTab("Root.Content.Main","Content");