Project

General

Profile

Actions

Bug #66206

closed

Task #79241: Streamline usage of l10n_mode

l10n_mode mergeIfNotBlank does not work for in specific Mapping configuration (inline / direct mapping - no ObjectStorage)

Added by Philipp Wrann about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase + l10n
Target version:
-
Start date:
2015-04-01
Due date:
% Done:

0%

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

Description

I set up an image field in a model/tca stucture using: \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig

In the overrides i defined maxitems = 1 and mapped it to my model like:

@var \Vendor\Package\Domain\Model\FileReference

That worked perfectly fine. I also defined l10n_mode "mergeIfNotBlank", that does NOT work as i expected. The value will be empty.

So i had to configure an ObjectStorage and retreive the very first object to make it work.

I think there is some special handling if the TCA mapping is 1:N or N:M but a concrete object is mapped. In that case the l10n setting mergeIfNotBlank does not work.

Either i didnt understand mergeIfNotBlank fully correct or this is a bug.

Actions #1

Updated by Mathias Schreiber over 8 years ago

  • Target version deleted (next-patchlevel)
Actions #2

Updated by Riccardo De Contardi over 7 years ago

  • Parent task set to #79241
Actions #3

Updated by Benni Mack over 6 years ago

  • Category changed from Extbase to Extbase + l10n
Actions #4

Updated by Benni Mack over 6 years ago

  • Status changed from New to Closed

We fixed this with introducing "allowLanguageSynchronization" - v8 should do the trick

Actions

Also available in: Atom PDF