Bug #99894
openSorting translated domain entities breaks when sorting translated entity below not translated entity in list view
0%
Description
Let us assume the following case of three domain entity records:
A (available in language UID 0 and 1)
B (available in language UID 0 and 1)
C (available only in language UID 0)
Now let us sort B below C in the list view with the arrows. (so sorting the translated element below the non translated element)
We would expect to have the following sorting.
Language UID 0:
A, C, B
Language UID 1:
A, B
What happens is that the sorting for language UID 0 is OK but the sorting for language UID 1 is now:
B, A
I have also attached screenshots of the database result after sorting. One for language UID 0 (OK) and language UID 1(bug).
Files
Updated by Daniel Haupt 8 months ago
I can confirm this issue in TYPO3 11.5.38.
So basically, a translated record will have an invalid sorting after moving it below a not translated record.
I tried debugging the issue: The DataHandler
can not find any $destL10nRecords
(related code), and therefore just moves the record to the pid
which results in see invalid sorting, because it then will be at the first position by default.