mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Don't allow translations of VirtualPage (until we can reliably copy data between locales) (see #5000) (from r98217)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102626 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a3b49b1566
commit
9fdc7cb2ff
@ -890,6 +890,12 @@ class Translatable extends DataObjectDecorator implements PermissionProvider {
|
|||||||
// Don't apply these modifications for normal DataObjects - they rely on CMSMain logic
|
// Don't apply these modifications for normal DataObjects - they rely on CMSMain logic
|
||||||
if(!($this->owner instanceof SiteTree)) return;
|
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(
|
$excludeFields = array(
|
||||||
'ViewerGroups',
|
'ViewerGroups',
|
||||||
'EditorGroups',
|
'EditorGroups',
|
||||||
|
@ -31,7 +31,7 @@ class VirtualPage extends Page {
|
|||||||
"Status",
|
"Status",
|
||||||
'ShowInMenus',
|
'ShowInMenus',
|
||||||
'ShowInSearch',
|
'ShowInSearch',
|
||||||
'Locale'
|
// 'Locale'
|
||||||
);
|
);
|
||||||
|
|
||||||
$allFields = $this->db();
|
$allFields = $this->db();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user