Review 14.3 Merged

95757[BUGFIX] Filter moved workspace records by language

Benjamin Kott CR +2 V +2 Normal +72 −6 updated 09/10/26, 08:07

Commit message

WorkspaceService collects the changes of a workspace from three queries:
the versioned records, the new records and the records that were moved.
The first two restrict their result to the requested language, the third
one never did.

The workspaces module therefore kept listing a moved element under every
language filter, and publishing a single language published moved
records of all languages along with it.

The language constraint is now applied to the moved records as well, and
a table that is not language aware contributes nothing when a
translation is requested, the way the other two queries already behave.

The three language checks in this class used
MathUtility::canBeInterpretedAsInteger() on an argument that is typed
?int, where a null comparison says the same thing; they are simplified
along the way.

Review

  • Code review CR +2 Done
    • Benjamin Kott +2
  • Verified V +2 Done
    • Benjamin Kott +2
    • core-ci +1 CI

Issues 1

Files 4

Review log 34

  1. Benjamin Kott commented on patch set 1 09/10/26, 07:55

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/10/26, 08:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108238

  3. Benjamin Kott voted on patch set 1 CR +2 V +2 09/10/26, 08:07

  4. Benjamin Kott merged patch set 2 09/10/26, 08:07