Project

General

Profile

Actions

Bug #62727

open

Allow MM reference translation on non inline fields for bidirectional MM relations

Added by Danilo Bürger about 10 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2014-11-05
Due date:
% Done:

0%

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

Description

Consider the following Example:

Categories <-- m:m --> Products

TCA:

tx_heimspiel_domain_model_category.php

'products' => array(
    'config' => array(
        'type' => 'select',
        'foreign_table' => 'tx_heimspiel_domain_model_product',
        'MM' => 'tx_heimspiel_product_category_mm',
        'MM_opposite_field' => 'categories',
    )
)

tx_heimspiel_domain_model_product.php

'categories' => array(
    'config' => array(
        'type' => 'select',
        'foreign_table' => 'tx_heimspiel_domain_model_category',
        'MM' => 'tx_heimspiel_product_category_mm',
    )
),

You have a category C1 and a localized version C1Localized and a product P1 that is associated with C1 through the MM table.

If you now localize P1 to P1Localized the expected result is that P1Localized is associated with C1Localized through the MM table, but what happens is that P1Localized gets associated to C1 through the MM table.

I propose allowing localizeReferencesAtParentLocalization to be used in conjunction with MM tables, which would allow for the expected behavior.

Attached is a 1 line diff to make that happen.


Files

localize.diff (1.04 KB) localize.diff Danilo Bürger, 2014-11-05 21:41

Related issues 3 (2 open1 closed)

Related to TYPO3 Core - Bug #89659: Translating a record creates superfluous wrong mm relationsClosed2019-11-13

Actions
Related to TYPO3 Core - Bug #70460: Categories for translated pages/categories get lostNew2015-10-07

Actions
Related to TYPO3 Core - Epic #101557: Translation Handling FindingsNew2023-08-03

Actions
Actions

Also available in: Atom PDF