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

DelegatingMultiValueSubnodeTransformer behaves erratically

    XMLWordPrintable

Details

    • Basel 23
    • 8

    Description

      The DelegatingMultiValueSubnodeTransformer doesn't work well with i18n, since 5.4.2.

      Given the following MultiValueFieldDefinition:

      class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
      transformerClass: info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueSubnodeTransformer
      field:
        name: text
        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        i18n: true
      

      When I add a new entry to the multi-field in English ("en") and I switch to German
      Then

      1. the entry disappears (should be preserved, with blank value);
        I have to add it again to enter the value in German ("de")
      2. when saving the dialog, only the German property text_de = "de" is saved.

      There seem to be similar quirks when removing entries as well.

      Several notes:

      • DelegatingMultiValueSubnodeTransformer was working in 5.4.1.
      • DelegatingMultiValueFieldTransformer still works in 5.4.2.
        • It is the superclass of the subnode transformer
        • It has undergone major changes in 5.4.2 (MGNLUI-3489); these changes are most likely causing this issue.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                oanh.thai Oanh Thai Hoang
                mgeljic Mikaël Geljić
                Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - 4d Original Estimate - 4d
                      4d
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 6d 2.5h
                      6d 2.5h