mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
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:
commit
e63c5d4482
@ -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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user