Project

General

Profile

Actions

Bug #49804

closed

Wrong dam record references when copying records with DAM record references

Added by Christian Heindl over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2013-07-09
Due date:
% Done:

0%

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

Description

Scenario:
  • 'tt_content' record with a field, which references DAM records/images ("txdam_getMediaTCA('image_field', 'field')"). uid:123
  • 'pages' record also with a field, which references DAM records/images ("txdam_getMediaTCA('image_field', 'field')"). uid:123

Problem:
When you copy the tt_content record, the copy references not only the images which, where referenced by tt_content:123 but also the images referenced by pages:123.

It seems as the TYPO3 core API does not correctly query for the "tablenames" in the "tx_dam_mm_ref" table, when processing the field within t3lib/class.t3lib_loaddbgroup.php -> method "readMM" (line 260).

Steps to reproduce:
  1. Copy the tt_content:123 record to another page
Environment:
  • dam 1.3.1
  • TYPO3 v4.7.10
Actions

Also available in: Atom PDF