Merge pull request #20 from purplespider/patch-1

Fixed incorrect isModified method name causing error
This commit is contained in:
Michael Strong 2014-06-13 17:10:25 +01:00
commit 78edab24ef

View File

@ -30,7 +30,7 @@ class GridFieldBlogPostState implements GridField_ColumnProvider {
if($columnName == "State") {
if($record->hasMethod("isPublished")) {
$modifiedLabel = "";
if($record->isModified()) {
if($record->isModifiedOnStage) {
$modifiedLabel = "<span class='modified'>" . _t("GridFieldBlogPostState.Modified") . "</span>";
}
@ -91,4 +91,4 @@ class GridFieldBlogPostState implements GridField_ColumnProvider {
}
}
}
}