Issue Bug Closed

#43101File relations are broken for import. in IMAGE cObject

Nicole Hummel 11/19/12, 15:12 updated 10/23/17, 22:14

Description

While trying to show an image link in pages/media I recognised FAL can’t handle relations in IMAGE / file.import

I debugged it and found out, that in the field pages/media the uid of the reference relation is stored while FAL tries to load the image with that uid (ContentObjectRenderer::getImgResource)

Line 5041 should maybe turned into
$fileObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getFileReferenceObject($file)->getOriginalFile();

IMHO this drops the functionality to insert files without any relation. So maybe it would be better to introduce a new TS property (isReference = 1) and handle that correctly.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.