Permalink
Browse files

Fixed "last edited" display in CMS actions

  • Loading branch information...
1 parent 8db6924 commit cc536f644e5e7ef300e5e58380d919a59cf9ebb3 @chillu chillu committed Dec 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 code/model/SiteTree.php
@@ -2083,9 +2083,11 @@ public function getCMSActions() {
$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')
)

0 comments on commit cc536f6

Please sign in to comment.