Skip to content

Commit

Permalink
Fix double nested alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Joe authored and dhensby committed Oct 16, 2016
1 parent 431714d commit 5df5805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/Controllers/CMSPageHistoryController.php
Expand Up @@ -16,6 +16,7 @@
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 {
Expand Down Expand Up @@ -174,7 +175,7 @@ public function getEditForm($id = null, $fields = null, $versionID = null, $comp
}

$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'))),
Expand Down

0 comments on commit 5df5805

Please sign in to comment.