Skip to content

Commit

Permalink
FIX Use correct API for determining if record is modified on draft stage
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Apr 20, 2018
1 parent fadb5d0 commit 64970db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/GridFieldSiteTreeState.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getColumnContent($gridField, $record, $columnName)
if ($columnName == 'State') {
if ($record->hasMethod('isPublished')) {
$modifiedLabel = '';
if ($record->isModifiedOnStage) {
if ($record->isModifiedOnDraft()) {
$modifiedLabel = '<span class="modified">' . _t(__CLASS__ . '.Modified', 'Modified') . '</span>';
}

Expand Down

0 comments on commit 64970db

Please sign in to comment.