Bug #91852
closed'l10n_display' => 'defaultAsReadonly' not working with mm table
0%
Description
Hi
in my TCA I have a field of type select with an mm relation.
I am using 'l10n_mode' => 'exclude' and 'l10n_display' => 'defaultAsReadonly' and I would expect to see all the relations of the original record in my translated one, too.
Instead I get only one entry in the select field. Exactly that one with the id of how many relations are in the original record.
This is propably because the mm relation is not resolved in the translated record, but the value of the mm-field of the original record is taken (which is the count of relations).
In the files you see in the left the traduction in the righ the original language.
One example of config in tca
'focus' => [
'exclude' => false,
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
'label' => 'LLL:EXT:kultura/Resources/Private/Language/locallang_db.xlf:tx_kultura_domain_model_spectacle.focus',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_kultura_domain_model_focus',
'foreign_table_where' => 'AND tx_kultura_domain_model_focus.sys_language_uid=0 AND {#tx_kultura_domain_model_focus}.{#pid}=###PAGE_TSCONFIG_ID###',
'MM' => 'tx_kultura_spectacle_focus_mm',
'size' => 10,
'autoSizeMax' => 30,
'maxitems' => 9999,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => false,
],
'addRecord' => [
'disabled' => false,
'options' => [
'pid' => '###PAGE_TSCONFIG_ID###',
]
],
'listModule' => [
'disabled' => true,
],
],
],
],
its the same issues that Bug #54093: 'l10n_display' => 'defaultAsReadonly' not working with mm table
Maybe a regression
Thanks
Files