#49804Wrong dam record references when copying records with DAM record references
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:- Copy the tt_content:123 record to another page
- 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.