diff --git a/core/model/Translatable.php b/core/model/Translatable.php index 156ef01c6..abc4c8cb5 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -890,6 +890,12 @@ class Translatable extends DataObjectDecorator implements PermissionProvider { // Don't apply these modifications for normal DataObjects - they rely on CMSMain logic if(!($this->owner instanceof SiteTree)) return; + // Don't allow translation of virtual pages because of data inconsistencies (see #5000) + $excludedPageTypes = array('VirtualPage'); + foreach($excludedPageTypes as $excludedPageType) { + if(is_a($this->owner, $excludedPageType)) return; + } + $excludeFields = array( 'ViewerGroups', 'EditorGroups', diff --git a/core/model/VirtualPage.php b/core/model/VirtualPage.php index 7f14f9dd9..d7201ec2a 100755 --- a/core/model/VirtualPage.php +++ b/core/model/VirtualPage.php @@ -31,7 +31,7 @@ class VirtualPage extends Page { "Status", 'ShowInMenus', 'ShowInSearch', - 'Locale' + // 'Locale' ); $allFields = $this->db();