#95997levelmedia not working with TYPO3 11.5.3 and disabled file relations
Description
Since TYPO3 version 11.5.3 “levelmedia” is not working anymore if there are disabled file relations in pages.media.
Example code:
foo = FILES foo.references.data = levelmedia:-1
Error message:
(1/1) #1317178794 TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException No file reference (sys_file_reference) was found for given UID: "53"
If you delete the disabled file relations it works. It also works with following TS code:
references {
table = pages
fieldName = media
uid.data = page:uid
}