BUGFIX: Fix updateCMSFields() being called twice on BlogEntries

This commit is contained in:
Andrew O'Neil 2009-10-06 03:13:00 +00:00
parent c920045933
commit e688e0687e

View File

@ -69,7 +69,9 @@ 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");