Project

General

Profile

Actions

Bug #76181

closed

Languagefield-value of new inline relations is not in sync with the language of its parent element

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

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2016-05-13
Due date:
% Done:

0%

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

Description

When creating a new inline element the language field is always set to default [0].

That is wrong, the new element should be in sync with the element it is related to.

Also - if you copy one content element from the default language to some translation (in page module) the inline-elements copied are not in sync with the copied translation. So the element you copied gets inserted correctly but the all inline elements still reference the default language.

TYPO3 Version is 7.6.6


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #76048: IRRE: Child records - New record doesn't get language of parent (non localized records but using new button)ClosedJo Hasenau2016-05-04

Actions
Actions #1

Updated by Tymoteusz Motylewski about 7 years ago

  • Status changed from New to Resolved

It should be fixed with this patch (merged in v7 and v8)
https://review.typo3.org/#/c/53206/

Few notes:
1) Now NEW irre elements (including FAL relations) will get a sys_language_uid of their parent.
2) There is no automatic migration of the old record having inccorrect value in the sys_language_uid.
3) The issue has been solved on the FormEngine level, thus you need to make sure you have
sys_language_uid field in the showitem list in your TCA.

Often you don't want to show the sys_language field to the user, so there is a little trick, which will make stuff work without showing the field to the user.
You just need to create a hidden palette with sys_language_uid in it.
e.g.

'showitem' = '... --palette--;;hiddenLanguagePalette,';
'hiddenLanguagePalette' => [
'showitem' => 'sys_language_uid, l10n_parent',
'isHiddenPalette' => true,
],

See TCA for sys_file_reference where this approach is used, or this pull request as a reference https://github.com/benjaminkott/bootstrap_package/pull/458

Please let me know if the issue is not solved for you.

Actions #2

Updated by Tymoteusz Motylewski about 7 years ago

  • Related to Bug #76048: IRRE: Child records - New record doesn't get language of parent (non localized records but using new button) added
Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF