Project

General

Profile

Actions

Bug #16166

closed

Publishing a record breaks dam_ttcontent-relations

Added by Andreas Wolf over 18 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Must have
Category:
Workspaces
Target version:
-
Start date:
2006-05-22
Due date:
% Done:

0%

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

Description

When you publish an updated version of a record, changes in the DAM-Items-Field (tx_damttcontent_files) are not shown in the FE. You always get the images you inserted into the first version of the record. This happens because the field uid_foreign in tx_dam_mm_ref is not updated when the id of the two content-elements (the old "live"- and the new "draft"-element) is switched.

Create a new content-element in a draft-workspace, insert DAM-items (with extension dam_ttcontent) and publish it. You won't see the images because the version you edited in fact already was a second version, the first version was created in the live-workspace. Or, alternatively, edit an already existing item in a draft-workspace - you will experience the same behaviour.

I have attached patchfiles for the following extensions and classes:

- tx_dam (tx_dam_db)
- dam_ttcontent
- t3lib_tcemain

I created a new hook in t3lib_tcemain->version_swap to be called after two versions of an element have been swapped. A new function in tx_dam_db (swapMMrefs) is called by this hook. The function checks if the modified table is tt_content and if so, then switches the records in tx_dam_mm_ref.
(issue imported from #M3531)


Files

patchfiles-3531-fixed2.tar (10 KB) patchfiles-3531-fixed2.tar Administrator Admin, 2006-07-04 15:56
t3lib_tcemain_publish_and_swap.diff (2.15 KB) t3lib_tcemain_publish_and_swap.diff Administrator Admin, 2006-07-04 16:27
3531_typo3_4.1_dam_1.1_beta5.tar (10 KB) 3531_typo3_4.1_dam_1.1_beta5.tar Administrator Admin, 2007-03-19 00:20
3531_dam.diff (898 Bytes) 3531_dam.diff Administrator Admin, 2007-04-11 21:59
3531_dam_ttcontent.diff (1.15 KB) 3531_dam_ttcontent.diff Administrator Admin, 2007-04-11 21:59
3531_t3lib_tcemain.diff (1.63 KB) 3531_t3lib_tcemain.diff Administrator Admin, 2007-04-11 21:59
3531_t3lib_tcemain-without-hook.diff (1.02 KB) 3531_t3lib_tcemain-without-hook.diff Administrator Admin, 2007-04-13 20:40
3531_t3lib_tcemain-all-tables.diff (1.19 KB) 3531_t3lib_tcemain-all-tables.diff Administrator Admin, 2007-07-25 21:20
3531_t3lib_tcemain-all-tables2.diff (1.46 KB) 3531_t3lib_tcemain-all-tables2.diff Administrator Admin, 2007-07-25 22:03
3531_t3lib_tcemain-all-tables3.diff (1.53 KB) 3531_t3lib_tcemain-all-tables3.diff Administrator Admin, 2007-07-25 22:29
MMetusalem.rtf (3.52 KB) MMetusalem.rtf Administrator Admin, 2008-01-31 23:59
MMetusalem.diff (16.4 KB) MMetusalem.diff Administrator Admin, 2008-02-01 00:00
mmetusalem_4-1.patch (16 KB) mmetusalem_4-1.patch Administrator Admin, 2008-02-01 13:52

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16393: Workspaces loses MM relations on saving a new record and publish a draft record.ClosedIngo Renner2006-07-21

Actions
Actions

Also available in: Atom PDF