Project

General

Profile

Actions

Bug #19840

closed

FlexForms: wrong mm-relations after copy and localize

Added by Peter Kuehn over 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-01-16
Due date:
% Done:

0%

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

Description

On copy or localize of a record with a FlexfForm that contains a MM-reference field the resulting record points to wrong relations.
The needed rows in the MM-table are created, but the field uid_local contains the number of relations instead of the uid of the correct target record.

The bug first showed up with Renes extension mmforeign (see: http://bugs.typo3.org/view.php?id=2381) and may have been ported from their into the core.
It may be already a known issue (see comments for t3lib_TCEmain->remapListedDBRecords_procDBRefs()).

Branches: 4_1, 4_2, trunk
(issue imported from #M10165)


Files

bug_10165.diff (1.49 KB) bug_10165.diff Administrator Admin, 2009-01-20 08:47
T3X_wmdb_rfc10165_demo-1_0_0-z-200901241619.t3x (141 KB) T3X_wmdb_rfc10165_demo-1_0_0-z-200901241619.t3x Administrator Admin, 2009-01-24 16:34
rfc10165_demo_manual.pdf (177 KB) rfc10165_demo_manual.pdf Administrator Admin, 2009-01-24 16:34
bug_10165_fix1.diff (1.49 KB) bug_10165_fix1.diff Administrator Admin, 2009-01-31 13:18
T3X_wmdb_rfc10165_demo-1_1_0-z-200901311256.t3x (141 KB) T3X_wmdb_rfc10165_demo-1_1_0-z-200901311256.t3x Administrator Admin, 2009-01-31 13:30
0010165_v3.patch (1.43 KB) 0010165_v3.patch Administrator Admin, 2009-03-31 18:55
Actions #1

Updated by Peter Kuehn over 15 years ago

added a testing environement and some documentation as requested on

Actions #2

Updated by Peter Kuehn over 15 years ago

added an improved version that avoids a bug that would have been introduced with the first patch.

credits go to www.planet-schule.de for their patience and support

Actions #3

Updated by Peter Kuehn over 15 years ago

version 1.1.0 of the demo-extension now contains the fix from the latest bug_10165_fix1.diff

Please use these two versions and ignore the ones posted first!
thnx pekue

Actions #4

Updated by Peter Kuehn over 15 years ago

We found out, that the demo extension will not create the correct database contents if you have extCache enabled. This is due to #0010804.
If you want to use the demo-ext and follow the documentation please disable your extCache first.

thnx
pekue

Actions #5

Updated by Oliver Hader about 15 years ago

I've created a new version of the patch that uses the copyRecord_procBasedOnFieldType() method as it is used for non-flexform values.
The trigger $this->registerDBList to remapListedDBRecords() should be set in any case when relationa fields have been found.

Actions #6

Updated by Oliver Hader about 15 years ago

Committed to SVN:
  • TYPO3_4-1 (rev. 5420)
  • TYPO3_4-2 (rev. 5421)
  • Trunk (rev. 5422)
Actions

Also available in: Atom PDF