Review main Merged

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

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

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

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 5