Project

General

Profile

Actions

Bug #43101

closed

File relations are broken for import. in IMAGE cObject

Added by Nicole Cordes about 12 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-11-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #43984: Add missing stdWrap to treatIdAsReferenceClosed2012-12-14

Actions
Actions

Also available in: Atom PDF