Issue Bug Closed

#49804Wrong dam record references when copying records with DAM record references

Christian Heindl 07/09/13, 10:01 updated 10/24/18, 09:53

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.