Bug #79712

triple entries in mm table when copying page

Added by Simon Würstle over 2 years ago. Updated 9 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-02-09
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In an extbase extension I have two different record types which have a mm-relation to each other, i.e. "maps" and "marker". There is a mm table tx_maptest_map_marker_mm.
Say you have a sysfolder in which is one map record and one marker record. They are related to each other. If you copy the sysfolder, 3 (!) new, but identical entries are added to the mm table. This only happens if you have set 'MM_opposite_field' in the marker TCA. If you don't set 'MM_opposite_field', everything works fine and only 1 entry is added to the mm table.

Tested with TYPO3 7.6.15 and PHP 5.6/7.0.

See also attached example extension, which was mostly created with EXT:extension_builder.

maptest.zip (17.7 KB) Simon Würstle, 2017-02-09 16:43


Related issues

Related to TYPO3 Core - Bug #76863: MM Relation with selectMultipleSideBySide Field - Add wizard resets the MM Relation Closed 2016-06-29

History

#1 Updated by Riccardo De Contardi 9 months ago

  • Category set to FormEngine aka TCEforms

Also available in: Atom PDF