[MGNLUI-3651] The locale get from uiContext is always null at the first time when opening form Created: 16/Nov/15  Updated: 08/Mar/21  Resolved: 08/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: forms
Affects Version/s: 5.4.2
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: form
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File FormPresenterImpl.patch    
Template:
Patch included:
Yes
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)

 Description   

At the first time when form presenter is called. The locale get from uiContext is always null.

  1. Observed result: localeToFormSections map stores null locale
  2. Expected result: localeToFormSections map should store correct locale instead of keeping null variable
  3. Additional info:
    The part need to improve maybe here:
    this.activeLocale = ((SubAppContext)uiContext).getAuthoringLocale();
    

    See attached patch for fixing suggestion


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