Copied Content Elements incorrectly inherit language
I have copied a content element that is set to "All Languages":
I'm now inserting the copied record after another one on another page:
The copy is now in German:
When inserting the copy after a record that is also set to "All Languages", the behavior is different:
Now my copy is also set to "All Languages":
Maybe I'm drawing the wrong conclusions from this one, but the behavior is unexpected to say the least.
#6 Updated by Daniel Goerz over 3 years ago
Hmm this is kind of intended since the core explicitly configured tt_content to behave like this in TCA:
$GLOBALS['TCA']['tt_content']['ctrl']['copyAfterDuplFields'] = 'colPos,sys_language_uid';
This configuration is resolved in
DataHandler::fixCopyAfterDuplFields() which is called upon the copy-process and the header of the methods states: When er record is copied you can specify fields from the previous record which should be copied into the new one
So it seems the behavior is indeed intended.