Project

General

Profile

Actions

Bug #99894

open

Sorting translated domain entities breaks when sorting translated entity below not translated entity in list view

Added by Denis Mir over 1 year ago. Updated 2 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2023-02-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Daniel Haupt 2 days 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.

Actions

Also available in: Atom PDF