[BUGFIX] Publishing delete placeholder affects other workspaces
On publishing a delete placeholder all other versions shall be deleted as well, since the original record will be deleted after that action. However, this is only valid for the live workspace and using the legacy version behavior there. DataHandler::deleteVersionsForRecord() calls BackendUtility::selectVersionsOfRecord(), but without the additional, but required, $workspace argument. Thus, all other versions in other workspaces are deleted as well. The SQL query to determine versions needs to be limited to either the live workspace (for legacy versions) and the current workspace. Resolves: #60249 Releases: master, 6.2 Change-Id: If90511dc4ac2bc3dde6e58570e6bf10e4ac949db Reviewed-on: http://review.typo3.org/31589 Reviewed-by:Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 17 additions, 13 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 1 addition, 1 deletiontypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deleteContent.csv 1 addition, 1 deletion...al/DataHandling/Regular/Publish/DataSet/deleteContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deletePage.csv 1 addition, 1 deletion...ional/DataHandling/Regular/Publish/DataSet/deletePage.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deleteContent.csv 1 addition, 1 deletion...DataHandling/Regular/PublishAll/DataSet/deleteContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deletePage.csv 1 addition, 1 deletion...al/DataHandling/Regular/PublishAll/DataSet/deletePage.csv
Please register or sign in to comment