mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1675 from mikenz/patch-3
FIX Page History 'Comparing versions' banner missing
This commit is contained in:
commit
981ca17695
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user