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',
|
$fields->fieldByName('Root.Main')->unshift(
|
||||||
new LiteralField('CurrentlyViewingMessage', ArrayData::create(array(
|
new LiteralField('CurrentlyViewingMessage', ArrayData::create(array(
|
||||||
'Content' => DBField::create_field('HTMLFragment', $message),
|
'Content' => DBField::create_field('HTMLFragment', $message),
|
||||||
'Classes' => 'notice'
|
'Classes' => 'notice'
|
||||||
))->renderWith($this->getTemplatesWithSuffix('_notice'))),
|
))->renderWith($this->getTemplatesWithSuffix('_notice')))
|
||||||
"Title"
|
);
|
||||||
);
|
|
||||||
|
|
||||||
$form->setFields($fields->makeReadonly());
|
$form->setFields($fields->makeReadonly());
|
||||||
$form->loadDataFrom(array(
|
$form->loadDataFrom(array(
|
||||||
|
Loading…
Reference in New Issue
Block a user