Project

General

Profile

Actions

Bug #18398

closed

The MMetusalem Bug - getReferencedFiles()

Added by Michael Ablass over 16 years ago. Updated over 10 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 #1

Updated by Christian Welzel over 13 years ago

I added the bug to dam_tv_connector on forge. It looks like this report is only relateded to this ext so you can close this one.

Bug on forge: http://forge.typo3.org/issues/12263

Actions #2

Updated by Steffen Gebert over 13 years ago

Yey, doesn't sound like a core issue.

Actions #3

Updated by Michael Stucki over 10 years ago

  • Category set to Workspaces
Actions #4

Updated by Michael Stucki over 10 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
  • Target version deleted (0)
Actions

Also available in: Atom PDF