[MGNLUI-7410] Setting a defaultValue on i18n field forces user to fill required fields on all locales Created: 03/Aug/22  Updated: 08/Dec/22  Resolved: 07/Sep/22

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2.22
Fix Version/s: 6.3.0, 6.2.24

Type: Bug Priority: Neutral
Reporter: Roberto Gaona Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 0.25d Time Spent: 0.25d
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7463 Provide a fix Sub-task Completed Roman Kovařík  
MGNLUI-7464 Provide test Sub-task Completed Roman Kovařík  
MGNLUI-7465 Review the code Sub-task Completed Adam Siska  
MGNLUI-7466 Preint QA 6.3 Sub-task Completed Adam Siska  
MGNLUI-7498 Final QA Sub-task Completed Sang Ngo Huu  
MGNLUI-7502 Preint QA 6.2 Sub-task Completed Adam Siska  
MGNLUI-7516 Personalization binder can't be exten... Sub-task Completed Roman Kovařík  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: Nucleus Quality Maintenance
Sprint: Nucleus 18
Story Points: 3
Team: Nucleus

 Description   

Steps to reproduce

  1. Add the following definition to /tours/apps/tours.yaml 
      detail:
        form:
          properties:
            name:
              i18n: true
            isFeatured:
              defaultValue: true
              i18n: true
  1. Try to add a new tour only filling the fields in German

Expected results 

Being able to save changes without issues.

Actual results

The DefaultValue set, forces you to fill all the required fields on multiple locales

Workaround

Development notes



 Comments   
Comment by Jaromir Sarf [ 29/Aug/22 ]

Discovery:
Do not validate i18n dialogs in locales where is nothing filled in except fields containing auto-filled default value.

Generated at Mon Feb 12 09:45:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.