-
Bug
-
Resolution: Fixed
-
Major
-
6.2.12
-
None
-
Demoauthor, any browser
-
-
Empty show more show less
-
UI Maintenance 1
-
5
The locale state between dialogs and subapps is not kept in sync properly and will lead to inconsistent behavior. This is a problem for authors that frequently switch between languages while editing content.
Steps to reproduce
- Edit page in pages app:
- Subapp locale switcher should show EN
https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:pages-app:detail;/travel/about:edit
- Subapp locale switcher should show EN
- Edit Page Properties
- Select DE as Language
- Close Dialog through Cancel (or save, doesn't matter)
- Subapp/Editor page is still showing EN page and locale selection
- Select main area
- Select Add Component
- Select Text and Image
- Text and Image Component Dialog opens in DE
- If saved, the newly created component will have _de properties, but the pages subapp is still in EN view.
Expected results
- Dialogs open up in the locale that is selected in the current subapp
Actual results
- Dialog opens up in the locale last selected in a previous dialog
Development notes
- The locale switcher in a dialog correctly updates the state (LocaleContext) of a subapp
- However, the subapp doesn't listen to changes of its own LocaleContext.
- As a result, the subapp may operate in a different locale than is defined in its own LocaleContext.
- This has wider implications - e.g. all availability rules that operate on the locale, will receive the wrong locale from the subapp -> wrong actions allowed/disallowed in contrast to what the user is seeing
Acceptance criteria