diff --git a/contao/dca/tl_page.php b/contao/dca/tl_page.php index cf54680..cd49044 100755 --- a/contao/dca/tl_page.php +++ b/contao/dca/tl_page.php @@ -14,7 +14,7 @@ 'label' => &$GLOBALS['TL_LANG']['tl_page']['languageMain'], 'exclude' => true, 'inputType' => 'pageTree', - 'eval' => array('fieldType'=>'radio', 'multiple'=>false, 'rootNodes'=>[0], 'tl_class'=>'w50 clr'), + 'eval' => array('fieldType'=>'radio', 'multiple'=>false, 'rootNodes'=>[0], 'tl_class'=>'w50 clr', 'doNotCopy' => true), 'sql' => "int(10) unsigned NOT NULL default '0'", 'load_callback' => [['Terminal42\ChangeLanguage\EventListener\DataContainer\PageFieldsListener', 'onLoadLanguageMain']], 'save_callback' => [['Terminal42\ChangeLanguage\EventListener\DataContainer\PageFieldsListener', 'onSaveLanguageMain']], @@ -26,7 +26,7 @@ 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('Terminal42\ChangeLanguage\EventListener\DataContainer\PageFieldsListener', 'onLanguageRootOptions'), - 'eval' => array('includeBlankOption'=>true, 'blankOptionLabel'=>&$GLOBALS['TL_LANG']['tl_page']['languageRoot'][2], 'tl_class'=>'w50'), + 'eval' => array('includeBlankOption'=>true, 'blankOptionLabel'=>&$GLOBALS['TL_LANG']['tl_page']['languageRoot'][2], 'tl_class'=>'w50', 'doNotCopy' => true), 'sql' => "int(10) unsigned NOT NULL default '0'" ); diff --git a/src/EventListener/DataContainer/LanguageMainTrait.php b/src/EventListener/DataContainer/LanguageMainTrait.php index deddc32..8d4dba6 100644 --- a/src/EventListener/DataContainer/LanguageMainTrait.php +++ b/src/EventListener/DataContainer/LanguageMainTrait.php @@ -22,6 +22,7 @@ protected function addLanguageMainField(): void 'blankOptionLabel' => &$GLOBALS['TL_LANG'][$this->getTable()]['languageMain'][2], 'chosen' => true, 'tl_class' => 'w50', + 'doNotCopy' => true, ], 'sql' => "int(10) unsigned NOT NULL default '0'", 'relation' => ['type' => 'hasOne', 'table' => $this->getTable()],