Merge pull request #1675 from mikenz/patch-3

FIX Page History 'Comparing versions' banner missing
This commit is contained in:
Ingo Schommer 2016-12-08 21:29:20 +13:00 committed by GitHub
commit 981ca17695

View File

@ -174,13 +174,12 @@ class CMSPageHistoryController extends CMSMain {
}
}
$fields->addFieldToTab('Root.Main',
new LiteralField('CurrentlyViewingMessage', ArrayData::create(array(
'Content' => DBField::create_field('HTMLFragment', $message),
'Classes' => 'notice'
))->renderWith($this->getTemplatesWithSuffix('_notice'))),
"Title"
);
$fields->fieldByName('Root.Main')->unshift(
new LiteralField('CurrentlyViewingMessage', ArrayData::create(array(
'Content' => DBField::create_field('HTMLFragment', $message),
'Classes' => 'notice'
))->renderWith($this->getTemplatesWithSuffix('_notice')))
);
$form->setFields($fields->makeReadonly());
$form->loadDataFrom(array(