Call the correct method ->isModifiedOnDraft()

This commit is contained in:
Marcio Barrientos 2018-06-06 21:25:00 -06:00 committed by Robbie Averill
parent db0d4f0f98
commit 4e5f25c5eb
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
if ($record instanceof BlogPost) {
$modifiedLabel = '';
if ($record->isModifiedOnStage) {
if ($record->isModifiedOnDraft()) {
$modifiedLabel = '<span class="modified">' . _t(__CLASS__ . '.Modified', 'Modified') . '</span>';
}