Merge branch 'guywatson-patch-1' into 3.1

This commit is contained in:
Daniel Hensby 2014-11-03 23:06:38 +00:00
commit dd0332d66d

View File

@ -2808,8 +2808,11 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$stageVersion = Versioned::get_versionnumber_by_stage('SiteTree', 'Stage', $this->ID);
$liveVersion = Versioned::get_versionnumber_by_stage('SiteTree', 'Live', $this->ID);
return ($stageVersion && $stageVersion != $liveVersion);
$isModified = ($stageVersion && $stageVersion != $liveVersion);
$this->extend('getIsModifiedOnStage', $isModified);
return $isModified;
}
/**