#64253Fix incorrect calculation of file references in workspaces
Description
The reference index of files seems to be calculated wrong (or some clones from a content record are not deleted properly), when someone pushes a change from one workspace to another. For example: DRAFT to LIVE or LIVE to DRAFT.
This results in a situation, where backend users (editors as well as administrators) are unable to delete files, because TYPO3 refuses to delete a file if there are still references to.
An administrator user can “fix” the error by re-indexing the reference index, if the change has been pushed from LIVE to DRAFT workspace, but not the other way round (DRAFT to LIVE).
The issue is reproducible when adding an image using content element “Text & Image” (tab: Images).
The behaviour is similar but different when adding links to files in the RTE.
Reviews 5
- main 47477[BUGFIX] Only update reference index on workspace swapping
- main 49628[BUGFIX] Only check if a record lives in a workspace if extension is installed
- TYPO3_6-2 36481[BUGFIX] Set correct workspace ID when updating referenceIndex for files
- main 36044[BUGFIX] Set correct workspace ID when updating referenceIndex for files
- TYPO3_7-0 36043[BUGFIX] Set correct workspace-Id when updating referenceIndex for files