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

DelegatingMultiValueSubnodeTransformer behaves erratically

    XMLWordPrintable

    Details

    • Sprint:
      Basel 23
    • Story Points:
      8
    • Magnolia Release:
      5.4.4

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

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