From cc536f644e5e7ef300e5e58380d919a59cf9ebb3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 17 Dec 2012 12:31:28 +0100 Subject: [PATCH] Fixed "last edited" display in CMS actions --- code/model/SiteTree.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index f37dfeb5..4a4d7d64 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -2083,9 +2083,11 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid $rootTabSet->addExtraClass('ss-ui-action-tabset action-menus'); // Render page information into the "more-options" drop-up, on the top. + $live = Versioned::get_one_by_stage('SiteTree', 'Live', "\"SiteTree\".\"ID\"='$this->ID'"); $moreOptions->push( new LiteralField('Information', $this->customise(array( + 'Live' => $live, 'ExistsOnLive' => $existsOnLive ))->renderWith('SiteTree_Information') )