mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: Fix updateCMSFields() being called twice on BlogEntries
This commit is contained in:
parent
c920045933
commit
e688e0687e
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user