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
@ -68,8 +68,10 @@ class BlogEntry extends Page {
|
|||||||
|
|
||||||
$firstName = Member::currentUser() ? Member::currentUser()->FirstName : '';
|
$firstName = Member::currentUser() ? Member::currentUser()->FirstName : '';
|
||||||
$codeparser = new BBCodeParser();
|
$codeparser = new BBCodeParser();
|
||||||
|
|
||||||
|
SiteTree::disableCMSFieldsExtensions();
|
||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
|
SiteTree::enableCMSFieldsExtensions();
|
||||||
|
|
||||||
if(!self::$allow_wysiwyg_editing) {
|
if(!self::$allow_wysiwyg_editing) {
|
||||||
$fields->removeFieldFromTab("Root.Content.Main","Content");
|
$fields->removeFieldFromTab("Root.Content.Main","Content");
|
||||||
|
Loading…
Reference in New Issue
Block a user