Project

General

Profile

Actions

Bug #18398

closed

The MMetusalem Bug - getReferencedFiles()

Added by Michael Ablass over 16 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2008-03-08
Due date:
% Done:

0%

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

Description

The fix for getReferencedFiles() in third party extensions is very helpful but seems to cover language issues. E.g. in tv_dam_connector (class.tx_damtvc_tsfe.php)

$damFiles = tx_dam_db::getReferencedFiles('tt_content', $this->cObj->parentRecord['data']['_ORIG_uid']?$this->cObj->parentRecord['data']['_ORIG_uid']:$this->cObj->parentRecord['data']['uid'], $refField);

Works for default Language but not for e.g. second language.

The call needs to be changed to

$uid = $this->cObj->parentRecord['data']['_LOCALIZED_UID'] ? $this->cObj->parentRecord['data']['_LOCALIZED_UID'] : ($this->cObj->parentRecord['data']['_ORIG_uid']?$this->cObj->parentRecord['data']['_ORIG_uid']:$this->cObj->parentRecord['data']['uid']);

I think this should work for other dam extending extensions too.

(issue imported from #M7791)

Actions

Also available in: Atom PDF