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

Switchable field with i18n settings ignores other locales selections

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.3, 6.2.24
    • 6.2.22
    • None
    • None

      Steps to reproduce

      1. Create a component with the following dialog:
        my-component.yaml
         form:
          properties:
            switchable:
              $type: switchableField
              i18n: true
              field:
                $type: radioButtonGroupField
                layout: horizontal
                name: switchable
                datasource:
                  $type: optionListDatasource
                  options:
                    - name: foo
                      value: foo
                    - name: bar
                      value: bar
              itemProvider:
                $type: currentItemProvider
              forms:
                - name: foo
                  properties:
                    foo:
                      $type: textField
                - name: bar
                  properties:
                    bar:
                      $type: richTextField 
      2. Create the component on a page and select foo for english (set a value on the textField) and bar for other language (set a value on the richText)
      3. Save the component
      4. Open the component
      5. Check that for fallback locale, the foo value is properly selected
      6. Switch to other language and check that the foo value remains selected instead of switching to bar

      Expected results

      The selected value and input for each language is properly selected

      Actual results

      The fallback option remains selected

      Workaround

      N/A

      Development notes

      The data is properly stored at JCR, looks like only the selection is wrong

        Acceptance criteria

          1.
          Implement Sub-task Completed Sang Ngo Huu

          100%

          Original Estimate - Not Specified Original Estimate - Not Specified
          Time Spent - 2.25d
          2.
          Review Sub-task Completed Adam Siska  
          3.
          Pre-int QA Sub-task Completed Adam Siska  
          4.
          QA Sub-task Completed Jaromir Sarf  
          5.
          Add document PR Sub-task Completed Sang Ngo Huu  
          6.
          Port to 6.3 Sub-task Completed Sang Ngo Huu  

              sang.ngo Sang Ngo Huu
              ccantalapiedra Carlos Cantalapiedra
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3d
                    3d