[BUGFIX] Update CSV references when discarding record
When an element is discarded in workspaces that is referenced by another record in a group CSV field, those referencing records need to be updated to no longer list the discarded record. The patch adds a method to DataHandler discard logic to take care of that. This resolves the very last call setting assertCleanReferenceIndex to false. That test property has been a temporary solution and is dropped now, tests extending AbstractDataHandlerActionTestCase can no longer (easily) prevent the tearDown() refindex check and should never do that again. Change-Id: Ifd2e5893d2d39b77762920b8b41ab547ed20ecd7 Resolves: #96080 Releases: master, 11.5 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72287 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Benni Mack <benni@typo3.org...>
Showing
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 70 additions, 0 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php 1 addition, 8 deletions...tional/DataHandling/AbstractDataHandlerActionTestCase.php
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/ActionTest.php 0 additions, 2 deletions...ests/Functional/DataHandling/Group/Discard/ActionTest.php
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/createContentNCreateRelationNDiscardElement.csv 1 addition, 3 deletions...d/DataSet/createContentNCreateRelationNDiscardElement.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Publish/DataSet/deleteContentOfRelation.csv 9 additions, 1 deletion...ng/ManyToMany/Publish/DataSet/deleteContentOfRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/PublishAll/DataSet/deleteContentOfRelation.csv 9 additions, 1 deletion...ManyToMany/PublishAll/DataSet/deleteContentOfRelation.csv
Please register or sign in to comment