Project

General

Profile

Actions

Bug #103970

open

Inline relations do not set the actual language

Added by Daniel Siepmann 26 days ago. Updated 26 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2024-06-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
localization, inline, irre
Complexity:
Is Regression:
Sprint Focus:

Description

Steps to reproduce:

  1. Create a site with at least two language
  2. Create a page within the site
  3. Create a content element in default language (don't save yet)
  4. Switch language of content element to all languages (-1) (don't save yet)
  5. Attach a file relation and save.

Result:
The relation will be saved with 0 for languages, which can be confirmed by select sys_language_uid from sys_file_reference once saved.

Expected:
The relation will be saved with -1 for language, as that's what was chosen in the parent while creating the relation.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #103969: Update language of inline elements is missing, leading to follow up issuesNew2024-06-04

Actions
Actions #1

Updated by Daniel Siepmann 26 days ago

  • Related to Bug #103969: Update language of inline elements is missing, leading to follow up issues added
Actions #2

Updated by Daniel Siepmann 26 days ago ยท Edited

It seems the context provided in AJAX is already wrong JSON.parse(JSON.parse(this.createRequestBody(t)['ajax[context]'])['config']) reveals the original instead of current language.
This is then returned from AJAX request and rendered within the form, leading to the value being submitted to DataHandler on save.

Actions #3

Updated by Daniel Siepmann 26 days ago

Our suggestion: Adjust the context to use the actual currently selected language.
Also on every update of the parent language, update all inline language values to match the parent.

Actions #4

Updated by Daniel Siepmann 26 days ago

  • Assignee deleted (Daniel Siepmann)
Actions #5

Updated by Daniel Siepmann 26 days ago

  • Tags set to localization, inline, irre
Actions

Also available in: Atom PDF