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

View File

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