Bug #62562
open
Flexforms - Translating with inline relations doesn't work
Added by Daniel Alder about 10 years ago.
Updated about 5 years ago.
Category:
DataHandler aka TCEmain
Description
If you are using a flexform with a field for inline relations and try to copy the contente lement by using "Copy default content elements" the related records in the inline fields will be copied instead of localized.
This leads to the issue the inline records in the translated content element does show up (as copies) but aren't but will not be rendered if you are using language mode 'strict'.
The behavior for translations will be completely ignored:
<behaviour type="array">
<localizationMode>select</localizationMode>
<localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
</behaviour>
Side node:
I think powermail for example is using kind a work around since there you have to select a "form record" first and the whole behavior works in the context of TCA itself.
Same goes for news extension for example.
Second side node:
https://forge.typo3.org/issues/58306 is a similar issue (same area). The patch there seems to break mine - But I will try to test this as well.
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33618
This leads to another bug in IRRE (I will add it as an issue if this gets applied):
When deleting a flexform content element with related records, the will not be deleted.
So "recopying" the element will end up with the exception "Localization failed; There already was a localization for this language of the record!"
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33618
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33618
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33618
- Assignee set to Daniel Alder
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33618
- Related to Bug #59734: Translating a CE containing inline elements doesn't apply language to inline elements added
- Status changed from Under Review to Rejected
should be resolved meanwhile.
Anja Leichsenring wrote:
should be resolved meanwhile.
nope. still not working in 8.7.19. Not tested in 9.5.0.
- Status changed from Rejected to Under Review
This issue is really old and I would really like to see it fixed soon, but there is a problem:
- To apply the correct language for inline records inside flexforms, several method signatures have to be changed by adding a $language parameter.
- This would break any XClass of DataHandler that is extending one of these methods. (PHP will throw an error because of parameter mismatch between the XClasses and the original Datahandler classes method). And I think there are many extensions out there that in some way or another extend the DataHandler.
Does anyone have a solution for this?
- Category set to DataHandler aka TCEmain
- Target version set to Candidate for patchlevel
Also available in: Atom
PDF