#88046RelationHandler does not respect deleted elements
Description
The Database RelationHandler does not respect deleted elements, because it removes all QueryRestrictions:
RelationHandler.php:493:“RelationHandler.php:528”:https://github.com/TYPO3/TYPO3.CMS/blob/b91e3606ba4c8032c9c66e6b2975887b842c461a/typo3/sysext/core/Classes/Database/RelationHandler.php#L528
RelationHandler.php:652
In one of our installations, this leads to an error in workspace. We have Delete-Placeholders which are deleted (??), so t3ver_state=2 and deleted=1 but those records still do not appear at some places. Our example is an image which was deleted in the workspace and somehow restored (the DELETE-Placeholder has deleted=1). But the image still does not appear as a Thumbnail in the Backend Page View.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.