Review 11.5 Merged

73659[BUGFIX] Discard 'new' workspace element when deleting live

Christian Kuhn CR +2 V +2 Hard +226 −55 updated 02/24/22, 22:20

Commit message

Scenario:
* Create a page in live
* Create a default language content element in live
* Localize live page
* Select a workspace
* Localize the content element in workspaces, translate mode
* Select live workspace
* Delete default content element in live

When deleting the default language content element in live,
usually all translated content elements are deleted, too.
This does not work for content element translations that
have been created in workspaces (t3ver_state=1). Those
elements *should* be discarded, but are not.

The patch adds a method to DataHandler to take care of
discarding t3ver_state=1 translations in workspaces when
a live record is set to deleted, and adds two functional
tests to verify behavior.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 1

Files 5

Review log 34

  1. Christian Kuhn commented on patch set 1 02/24/22, 21:52

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 02/24/22, 22:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/24239

  3. Christian Kuhn voted on patch set 1 V +2 CR +2 02/24/22, 22:20

  4. Christian Kuhn merged patch set 2 02/24/22, 22:20