[BLOSSOM-283] Validation on i18n switchable field Created: 22/Oct/21  Updated: 18/Dec/23

Status: Accepted
Project: Blossom
Component/s: None
Affects Version/s: 3.4.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
relation
is related to MGNLUI-6830 No visual feedback on field validatio... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Support
Story Points: 3
Team: DeveloperX

 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


Generated at Sun Feb 11 23:31:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.