Skip to content
Snippets Groups Projects
Commit 7ca5894a authored by Christian Kuhn's avatar Christian Kuhn
Browse files

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

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.

Resolves: #97018
Releases: main, 11.5
Change-Id: I1bba5de52447cdfb9e80feca27aebf9855dccd28
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73690


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 09640f82
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment