Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-283

Validation on i18n switchable field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 3.4.6
    • None
    • None

    Description

      Timebox: 3SP – research the problem, make proper estimate for the fix.

      Steps to reproduce

      1.  Use blossom sample project to quickly reproduce the issue.
      2. There must be at least two configured languages for authoring.
      3.  Add the following switchable field to any of the existing components (eg. text)
         cfg.fields.switchable("testme").options(
                                new RealOptionBuilder().value("test1_text1").label("test1").selected(),
                                new RealOptionBuilder().value("test2_text2").label("test2")
                                ).fields(
                                		cfg.fields.text("test1_text1").label("Text 1").required().i18n(),
                                		cfg.fields.text("test2_text2").label("Text 2").required().i18n()
                          ).required().i18n() 
      4. Add that component to any page
      5. When dialog opens, leave default language empty and switch to another language
      6. Fill all the required values and save.

      Expected results

      Dialog closes and information is stored

      Actual results

      Nothing happens due to validation on the switchable field occurring in the first language tab (Same than in MGNLUI-6830)

      Workaround

      Don't use selected() so the switchable field is not expanded in the first language tab. This wouldn't be desirable when fields of switchable are required as you could save without filling them.

      Development notes

      This is not happening when using switchable field out of blossom scope. It has been reproduced also with 3.4.7-SNAPSHOT

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                jayala Jonathan Ayala
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD