Issue Bug Closed

#83079wrong sorting of content elements when translating using non-default-language CEs as source

Tobias Liebig 11/24/17, 15:04 updated 10/04/22, 13:59

Description

Steps to reproduce:
  • make sure you have at least two “Website language” records (sys_language) in your root node. Let’s name them “A” and “B”.
  • open the page modul
  • create a blank page
  • create at least three distinct content elements in the default language. Lets name them “1”, “2”, “3”, “4”
  • choose the “Language” view in the “actionMenu” dropdown
  • create a page translation for language “A”
  • translate the content into “A” using the “translate” mode (not ‘copy’) * these content elements will be created in the correct order
  • create a page translation for language “B”
  • translate the content into “B” using the “translate” mode (not ‘copy’)
  • choose “A” as translation source for your translation when the dialog asks “Choose the language from which you want to localize the content”
  • the order for “B” will result in “1”, “4”, “3”, “2”

What happens:
The “localize” method in \TYPO3\CMS\Core\DataHandling\DataHandler calls “getPreviousLocalizedRecordUid” to determine after which CE the new translated CE should be placed.
This works okay for the first case (using default as source), but returns a wrong value, when using another translation as source.

Reviews 4