FIX Use correct API for determining if record is modified on draft stage

This commit is contained in:
Robbie Averill 2018-04-20 17:05:21 +12:00
parent db0d4f0f98
commit dc26478e94

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>';
} }