Review 14.3 Merged

97595[BUGFIX] Calculate sorting of copied records from destination

Georg Ringer CR +2 V +2 Normal +57 −0 updated 11/13/26, 07:30

Commit message

When a record is copied, DataHandler hands all fields of the source
record that are configured in TCA `columns` to a new datamap. If the
`sortby` field of a table is configured as a column, for example to
make it available in an Extbase model, the sorting value of the
source record was part of that datamap and replaced the value that
was calculated for the destination. The copy then ended up next to
its source record instead of at the top of the target page or after
the record it was pasted after.

The `sortby` field of the source record is now left out when the
datamap for the copy is built, so the sorting is always calculated
from the destination. A sorting value that is explicitly passed in a
datamap is handled as before.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 3

Review log 46

  1. Georg Ringer commented on patch set 1 11/13/26, 06:35

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V -1 11/13/26, 06:43 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114273

  3. Benni Mack uploaded patch set 2 V -1 11/13/26, 07:22

  4. core-ci voted on patch set 2 V +1 11/13/26, 07:29 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114280

  5. Benni Mack voted on patch set 2 CR +2 V +2 11/13/26, 07:30

  6. Benni Mack merged patch set 3 11/13/26, 07:30