Issue Bug Closed

#94672Handling of Group's "Custom Value" in translated pages when "behaviour" -> "allowLanguageSynchronization" is true

Samuel Giss 07/30/21, 09:38 updated 11/15/26, 15:07

Description

Situation:

  • Input of type “group” (related_pages) for selection of related pages in page properties (see below for config)
  • Site with multiple languages

What I did:

  1. Create page with default language (uid 0)
  2. Select 2 pages in group input
  3. Translate page to language with uid 1
  4. Select “Custom Value” for synchronised group input
  5. Select a single page in group input for translated page

The problem:
I receive the selected pages from the default language on the translated page

TCA Config:

'related_pages' => [
        'label' => 'LLL:EXT:stv/Resources/Private/Language/Backend.xlf:pages.columns.related_articles',
        'config' => [
            'type' => 'group',
            'internal_type' => 'db',
            'allowed' => 'pages',
            'foreign_table' => 'pages',
            'foreign_table_where' => ' pages.pid = 2311 AND pages.doktype = 100 AND pages.uid != ###THIS_UID###',
            'MM_opposite_field' => 'related_from',
            'size' => 5,
            'minitems' => 0,
            'maxitems' => 3,
            'MM' => 'tx_stv_articles_related_mm',
            'suggestOptions' => [
                'default' => [
                    'suggestOptions' => true,
                    'addWhere' => ' AND pages.pid = 2311 AND pages.doktype = 100 AND pages.uid != ###THIS_UID###'
                ]
            ],
            'behaviour' => [
                'allowLanguageSynchronization' => true,
            ],
        ]
    ],
'related_from' => [
        'exclude' => true,
        'label' => 'LLL:EXT:stv/Resources/Private/Language/Backend.xlf:pages.columns.related_from',
        'config' => [
            'type' => 'group',
            'internal_type' => 'db',
            'foreign_table' => 'pages',
            'allowed' => 'pages',
            'size' => 5,
            'MM' => 'tx_stv_articles_related_mm',
            'readOnly' => 1,
        ]
    ]

SQL for “pages”:

    related_pages       int(11) DEFAULT '0' NOT NULL,
    related_from        int(11) DEFAULT '0' NOT NULL

SQL for MM-table:

CREATE TABLE tx_stv_articles_related_mm
(
    uid_local           int(11) DEFAULT '0' NOT NULL,
    uid_foreign         int(11) DEFAULT '0' NOT NULL,
    sorting             int(11) DEFAULT '0' NOT NULL,
    sorting_foreign     int(11) DEFAULT '0' NOT NULL,

    KEY uid_local (uid_local),
    KEY uid_foreign (uid_foreign)
);

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Benni Mack commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-15T15:07:57+00:00" > 11/15/26, 15:07 </span>

    If I read the code correctly, this does not happen in v13+ anymore due to Record API + Extbase using PROPERTY_LOCALIZED_UI – also not in the backend. let me know if this still happens, so I will re-open the ticket.