Issue Bug Closed

#88974Wrong l10n_state after copying a record

Alexander Vogt 08/19/19, 09:54 updated 07/09/24, 12:00

Description

Prerequisites
  1. Configure tt_content field “assets” with behaviour “allowLanguageSynchronization”
Steps to reproduce:
  1. Create a page with translation
  2. Create a content element with a media file (“assets”) and translate it
  3. Change the translation behaviour from “Value of default language” to “Custom value” and add a different file
  4. Create a copy of the element

*Result:*
The copied translation has no image because the l10n_state value of “assets” was set from “custom” to “source” (see attachment).

The wrong state was set in DataMapItem: https://github.com/TYPO3/TYPO3.CMS/blob/9.5/typo3/sysext/core/Classes/DataHandling/Localization/DataMapItem.php#L443

Reviews 2