Skip to content

Commit

Permalink
ENH Updated UI for versioned objects and all its versioned relations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Dec 21, 2023
1 parent d5faa01 commit 7e232bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ public function getCMSActions()
// Get status of page
$isOnDraft = $this->isOnDraft();
$isPublished = $this->isPublished();
$stagesDiffer = $this->stagesDiffer();
$stagesDiffer = $this->stagesDifferRecursive();

// Check permissions
$canPublish = $this->canPublish();
Expand Down Expand Up @@ -2960,7 +2960,7 @@ public function getStatusFlags($cached = true)
'text' => _t(__CLASS__.'.ADDEDTODRAFTSHORT', 'Draft'),
'title' => _t(__CLASS__.'.ADDEDTODRAFTHELP', "Page has not been published yet")
];
} elseif ($this->isModifiedOnDraft()) {
} elseif ($this->isModifiedOnDraft() || $this->stagesDifferRecursive()) {
$flags['modified'] = [
'text' => _t(__CLASS__.'.MODIFIEDONDRAFTSHORT', 'Modified'),
'title' => _t(__CLASS__.'.MODIFIEDONDRAFTHELP', 'Page has unpublished changes'),
Expand Down

0 comments on commit 7e232bb

Please sign in to comment.