BUGFIX: Don't turn virtual pages green if their source is deleted from draft and then reverted (merged from r100926 and r100928)

This commit is contained in:
Sam Minnee 2011-09-23 10:36:25 +02:00 committed by Ingo Schommer
parent f368686adc
commit d64e847534

View File

@ -1429,7 +1429,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$this->syncLinkTracking();
// Check to see if we've only altered fields that shouldn't affect versioning
$fieldsIgnoredByVersioning = array('HasBrokenLink', 'Status', 'HasBrokenFile', 'ToDo');
$fieldsIgnoredByVersioning = array('HasBrokenLink', 'Status', 'HasBrokenFile', 'ToDo', 'VersionID', 'SaveCount');
$changedFields = array_keys($this->getChangedFields(true, 2));
// This more rigorous check is inline with the test that write()