[BUGFIX] Skip sys_refindex for workspace placeholders
The reference index can be seen as a cache for relations. It is used in various places to show how many other records have a relation to a given record, for instance in list and filelist module and in the record info modal. In workspaces, new and moved records create records pairs: t3ver_state -1 & 1 and t3ver_state 3 & 4. The backend always shows only one of these pairs. The reference index creates an entry for each record, so two for each pair. This is useless and confusing for editors: If for instance a new file reference is added to a content element in workspaces, the file list shows two usages of the file instead of only one. The patch suppresses reference index entries for the placeholder records - t3ver_state 1 and 3 - so each pair ends up with only one sys_refindex entry. Resolves: #92345 Related: #61917 Releases: master, 10.4 Change-Id: I16ede3a9f1b66a7195526a224e9f1c43c03d7ba6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65767 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de>
Showing
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 0 additions, 1 deletiontypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/Database/ReferenceIndex.php 11 additions, 2 deletionstypo3/sysext/core/Classes/Database/ReferenceIndex.php
- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php 0 additions, 1 deletiontypo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Discard/DataSet/localizeContent.csv 0 additions, 2 deletions...onal/DataHandling/FAL/Discard/DataSet/localizeContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/copyContent.csv 0 additions, 4 deletions...unctional/DataHandling/FAL/Modify/DataSet/copyContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/createContentWFileReference.csv 0 additions, 2 deletions...ndling/FAL/Modify/DataSet/createContentWFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/localizeContent.csv 0 additions, 11 deletions...ional/DataHandling/FAL/Modify/DataSet/localizeContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentNAddFileReference.csv 0 additions, 1 deletion...ing/FAL/Modify/DataSet/modifyContentNAddFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/moveContentToDifferentPage.csv 0 additions, 2 deletions...andling/FAL/Modify/DataSet/moveContentToDifferentPage.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/moveContentToDifferentPageNChangeSorting.csv 0 additions, 4 deletions...dify/DataSet/moveContentToDifferentPageNChangeSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/createContentNCreateRelationNDiscardElement.csv 0 additions, 1 deletion...d/DataSet/createContentNCreateRelationNDiscardElement.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/localizeElementOfRelation.csv 0 additions, 2 deletions...dling/Group/Discard/DataSet/localizeElementOfRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/copyContentOfRelation.csv 0 additions, 2 deletions...taHandling/Group/Modify/DataSet/copyContentOfRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/createContentNAddRelation.csv 0 additions, 1 deletion...ndling/Group/Modify/DataSet/createContentNAddRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/createContentNCreateRelation.csv 0 additions, 1 deletion...ing/Group/Modify/DataSet/createContentNCreateRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelation.csv 0 additions, 3 deletions...ndling/Group/Modify/DataSet/localizeContentOfRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv 0 additions, 4 deletions...ndling/Group/Modify/DataSet/localizeElementOfRelation.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Discard/DataSet/createNCopyParentContentNHotelNOfferChildren.csv 0 additions, 2 deletions.../DataSet/createNCopyParentContentNHotelNOfferChildren.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Discard/DataSet/createNLocParentNHotelNOfferChildrenNDiscardLocParent.csv 0 additions, 2 deletions...createNLocParentNHotelNOfferChildrenNDiscardLocParent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Discard/DataSet/createNLocalizeParentContentNHotelNOfferChildren.csv 0 additions, 2 deletions...aSet/createNLocalizeParentContentNHotelNOfferChildren.csv
Please register or sign in to comment