Project

General

Profile

Actions

Bug #82130

closed

Inline record for NEW tt_content element becomes sys_language_uid=-1

Added by Martin Horniak over 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-08-18
Due date:
% Done:

0%

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

Description

By creating a new tt_content element with included inline records, is not possible for FormInlineAjaxController to determine the current parent (tt_content-element) language. Therefore become all included inline records -1 as sys_language_uid.
For the previously saved tt_content elements woks the patch from Daniel Maier (https://review.typo3.org/#/c/53206/).

My recommendation is to adapt the DOM Object ID for InlineStackProcessor:
- Include the current parent language in the AJAX call and determine the right localizationMode in TcaInlineConfiguration::initializeLocalizationMode for this case not from $result['defaultLanguageRow'], but from this prepared parent language field (probably set in $formDataCompilerInputForParent).
- Extend the patch mentioned above: get the language directly from InlineStack (parent) data instead of DB record.

This issue is based on TYPO3 version 7.6.20. Not verified for other versions.


Files

2017-08-17_15-03-52.jpg (78.6 KB) 2017-08-17_15-03-52.jpg Martin Horniak, 2017-08-18 16:19
Actions

Also available in: Atom PDF