Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3631

I18N on nested MultiValue / CompositeFields weird behaviour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 5.4.2
    • dialogs

    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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mgeljic Mikaël Geljić
                pardinois Pieter Ardinois
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD