Bug #103970
openInline relations do not set the actual language
0%
Description
Steps to reproduce:
- Create a site with at least two language
- Create a page within the site
- Create a content element in default language (don't save yet)
- Switch language of content element to all languages (-1) (don't save yet)
- 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.
Updated by Daniel Siepmann 2 months ago
- Related to Bug #103969: Update language of inline elements is missing, leading to follow up issues added
Updated by Daniel Siepmann 2 months 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.
Updated by Daniel Siepmann 2 months 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.