Bug #18398
closedThe MMetusalem Bug - getReferencedFiles()
0%
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)