mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fix double nested alert message
This commit is contained in:
parent
431714d0eb
commit
5df580578a
@ -16,6 +16,7 @@ use SilverStripe\ORM\FieldType\DBField;
|
||||
use SilverStripe\ORM\FieldType\DBHTMLText;
|
||||
use SilverStripe\ORM\Versioning\Versioned;
|
||||
use SilverStripe\Security\Security;
|
||||
use SilverStripe\View\ArrayData;
|
||||
use SilverStripe\View\ViewableData;
|
||||
|
||||
class CMSPageHistoryController extends CMSMain {
|
||||
@ -174,7 +175,7 @@ class CMSPageHistoryController extends CMSMain {
|
||||
}
|
||||
|
||||
$fields->addFieldToTab('Root.Main',
|
||||
new LiteralField('CurrentlyViewingMessage', $this->customise(array(
|
||||
new LiteralField('CurrentlyViewingMessage', ArrayData::create(array(
|
||||
'Content' => DBField::create_field('HTMLFragment', $message),
|
||||
'Classes' => 'notice'
|
||||
))->renderWith($this->getTemplatesWithSuffix('_notice'))),
|
||||
|
Loading…
Reference in New Issue
Block a user