[MGNLUI-7040] Available languages in create page dialog are cached across sites Created: 21/Feb/22 Updated: 20/Jul/22 Resolved: 30/Mar/22 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.17 |
| Fix Version/s: | 6.2.18 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Carlos Cantalapiedra | Assignee: | Quach Hao Thien |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Maintenance, nucleus | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 6.5d | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| 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 6, Nucleus 7 | ||||
| Story Points: | 3 | ||||
| Team: | |||||
| Description |
Steps to reproduce
Expected resultsThe "Page properties" dialog opens and does not provide a language switch and the fields are not shown to be localized. Reloading the page and first selecting /sportstation and then /travel will show the "Page properties" dialog for both without language switch and without localized fields. In the config /server/i18n/authoring@class the MultiSiteI18nAuthoringSupport is configured which should determine the available locales for each site individually. Actual resultsThe "Page properties" dialog opens and shows localised fields like the page title and the language switch in the lower left corner of the dialog WorkaroundReloading the page seems to clear the cached Development notesThe problem seems to be the info.magnolia.ui.dialog.actions.OpenDialogAction where the value context is populated only once and then cached independent of the node in the valueContext. |
| Comments |
| Comment by Quach Hao Thien [ 22/Feb/22 ] |
Discovery completedLocaleContext should be populated in every time open dialog action being executed |