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

Switching authoring locale changes values of non-i18ned fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 5.4.12, 5.5.3
    • 5.4.4, 5.4.5, 5.4.6, 5.4.7
    • dialogs, forms
    • Saigon 77, Saigon 78, Saigon 79, Saigon 80, Saigon 81, Saigon 82, Saigon 83, Saigon 84, Saigon 85, Saigon 86
    • 8

      In a form dialog, switching locales also changes the values of non-i18ned fields, which is wrong.

      To reproduce the issue on demo author:
      1. Log in Demo author and open a tour for editing, e.g. https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:tours:detail;/magnolia-travels/Vietnam--Tradition-and-Today:edit
      2. Switch authoring locale to "German"
      3. Locate a non-i18ned field and change the value, e.g. Tour Operator = Something
      4. Switch authoring locale to "English"
      5. Edit the value of the same field again, e.g. Tour Operator = Lemonize
      6. Again, switch authoring locale back to "German": the field's value is changes back to Something, which is wrong. Lemonize would be right.

      Note that the last entered value is being stored when saving the form, which is correct.

      It seems that the field's values are not properly synchronized for non-i18ned fields. I wasn't able to figure out in detail where the code breaks: I might be wrong but I think the underlying datasource property still contains the correct value after the info.magnolia.ui.vaadin.form.FormViewReduced.Listener#localeChanged event is fired. There must be some event occurring thereafter which changes the value incorrectly.

        Acceptance criteria

              ngoc.nguyenthanh Ngoc Nguyenthanh
              vivi Vivian Steller
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 1.5d Original Estimate - 1.5d
                    1.5d
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 9d 1.5h
                    9d 1.5h