[MGNLUI-3631] I18N on nested MultiValue / CompositeFields weird behaviour Created: 21/Oct/15 Updated: 29/Sep/22 Resolved: 22/Oct/15 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | dialogs |
| Affects Version/s: | 5.4.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Pieter Ardinois | Assignee: | Mikaël Geljić |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | dialog | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | I18n fields issues | ||||||||
| Description |
|
Test case below:
- name: websites
class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
transformerClass: info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueSubnodeTransformer
field:
name: links
class: info.magnolia.ui.form.field.definition.CompositeFieldDefinition
transformerClass: info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
fields:
- name: linkLabel
class: info.magnolia.ui.form.field.definition.TextFieldDefinition
i18n: true
- name: url
class: info.magnolia.ui.form.field.definition.TextFieldDefinition
i18n: true
For each language we want to provide for the fields mentionned above, we need to provide a separate 'save' action. Else, only the last provided content will be persisted. Behaviour should be equal as providing I18N for a normal TextField: Provide content in multiple languages. Press save == > Content is persisted for all provided languages. |
| Comments |
| Comment by Mikaël Geljić [ 22/Oct/15 ] |
|
Hi Pieter, There was indeed a bug introduced in Magnolia 5.4.2, precisely related to the DelegatingMultiValueSubnodeTransformer. See In the meantime, you may also use the DelegatingMultiValueFieldTransformer if it is an option for you. It is not affected by this bug. Cheers, |