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