[MGNLUI-6918] Switchable Field i18n validation error Created: 19/Oct/21 Updated: 18/Oct/23 Resolved: 26/Sep/23 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.12 |
| Fix Version/s: | 6.3.0, 6.2.40 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Carlos Cantalapiedra | Assignee: | Quach Hao Thien |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Maintenance | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | 6d 3.5h | Time Spent: | 6d 3.5h |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| 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
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Nucleus 45, Nucleus 46 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Work Started: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Approved: |
Yes
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
| Comments |
| Comment by Roberto Gaona [ 21/Oct/21 ] |
|
This issue duplicates |
| Comment by Quach Hao Thien [ 19/Sep/23 ] |
Discovery (new finding)When applying defaultValue for subEditors, a new subEditor is created using default locale as restricted (in this case is en), and we have a new LocaleContext [LocaleContext (default: en, current: en, availableLocales \{en})] https://git.magnolia-cms.com/projects/platform/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/editor/FormView.java?at=65688c755920d2228387c3b9013be23977a24757#176 When that subEditor is validating, the LocaleContext of that subEditor will be used to check the current locale for validating https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/editor/FormPresenter.java?at=refs%2Fheads%2Frelease%2F6.2#172, and that somehow breaks the validating logic because the en locale is not the selected locale |