From d64e847534dcb2b1e88f6a4c6182a03bc7b7b1ca Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 23 Sep 2011 10:36:25 +0200 Subject: [PATCH] BUGFIX: Don't turn virtual pages green if their source is deleted from draft and then reverted (merged from r100926 and r100928) --- code/model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index 16367d9b..9842dd81 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -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()