Feature #78959
closedTask #79241: Streamline usage of l10n_mode
Non-translated sys_file_reference with "mergeIfNotBlank" doesn't work
0%
Description
Hello there,
as already mentioned in the typo3-cms Slack channel, it appears that although sys_file_reference translations work like a charm, the mergeIfNotBlank directive doesn't.
The issue at hand is the way how this is built (and maybe that's the reason why it didn't get implemented in the beginning at the first place).
Usual Translations work like this:
table A
uid
pid
fields
sys_language_uid
l10n_parent
And then a record would look something like:
1 | 1 | my cool field | 0 | 0 |
2 | 1 | mein cooles feld | 1 | 1 |
But now in sys_file_reference, this doesn't quite work like this, since the relation to the tt_content element is on the translated record and the translated record doesn't know its parent anymore. Thus no "mergeIfNotBlank" happens.
This would have to be fixed by telling TYPO3 to get the translation by getting the actual sys_file_reference of the l10n_parent of the current sys_file_reference record if the sys_language_uid is empty and mergeIfNotBlank is enabled.
Could you implement something like this for 6.2 LTS (and all the further versions)?
Regards
Tizian