Bug #103969
openUpdate language of inline elements is missing, leading to follow up issues
0%
Description
Steps to reproduce:
- Create a site with at least two language
- Create a page within the site
- Create translation of the new page
- Create a content element in default language (don't save yet)
- Switch language of content element to all languages (-1) and save
- Attach a file relation and save. The relation will be saved with -1 for languages, which can be confirmed by
select sys_language_uid from sys_file_reference
once saved. - Switch language of content element to default language 0 and save.
Result:
The relation will still have -1, which is out of sync with the parent element. But that might be okay, I'm not sure about the expectation and concept.
Now continuo:
- Create translation of the content element
Expectation:
The content element will be translated, with the file relation.
Actual:
The content element is translated, but the translation has two file relations.
The -1 and a translated one.
The behaviour is slightly different for EXT:news and inline content elements. Follow the same steps but create a content element within a news record instead of a file relation. Tested with EXT:news version 11.4.2.
Expectation: The news record will be translated, with content element.
Actual:
An Exception is thrown:
(1/1) #1486233164 RuntimeException Child record was not processed
This is due to ['behaviour']['allowLanguageSynchronization' => true,
within EXT:news. Removing this option results in same behaviour as for tt_content images.
I've attached a sqlite file with the base situation where one can reproduce the issue by triggering the corresponding localizations of records.
I don't know what the expected behaviour should be, maybe synchronize the sys_language_uid field upon change? But definitely hot throwing an exception while translating.
Workaround: Manually switch languages of all relations. But that's not possible for file relations by default as the field is not rendered.
When this happens: E.g. when following #103970 because the relations are than initially stored with a different language value than their parent.
Files
Updated by Daniel Siepmann 8 months ago
- Related to Bug #103970: Inline relations do not set the actual language added
Updated by Sybille Peters about 1 month ago
- Related to Bug #88980: Translating records with FAL relation where allowLanguageSynchronization set to true added
Updated by Sybille Peters about 1 month ago
- Related to Bug #101962: New records created on a field of type INLINE have the wrong sys_language_uid value added
Updated by Sybille Peters 27 days ago
- Related to Bug #81165: Creating IRRE record within a non-default language record sets wrong sys_language_uid added
Updated by Gerrit Code Review 26 days ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 26 days ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 26 days ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 26 days ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 26 days ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 26 days ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 25 days ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 25 days ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 24 days ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Gerrit Code Review 24 days ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87595
Updated by Sybille Peters 18 days ago
- Related to Bug #89787: Copying element with IRRE element from one language to another added