Merge pull request #530 from creative-commoners/pulls/3.1/modified-state

FIX Use correct API for determining if record is modified on draft stage
This commit is contained in:
Dylan Wagstaff 2018-04-20 21:05:50 +12:00 committed by GitHub
commit e63c5d4482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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