[MGNLUI-6501] Language selector shows wrong initial language Created: 14/Dec/20  Updated: 17/Aug/21  Resolved: 13/Jan/21

Status: Closed
Project: Magnolia UI
Component/s: framework
Affects Version/s: 6.2.3, 6.2.5
Fix Version/s: 6.2.6

Type: Bug Priority: Major
Reporter: Frank Sommer Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: 0d
Time Spent: 0.25d
Original Estimate: Not Specified

Attachments: PNG File image-2020-12-14-09-19-05-511.png    
Issue Links:
Relates
relates to MGNLUI-6693 I18n: different behaviour 5-UI and 6-... Closed
causality
is causing MGNLUI-6831 IdentifierToPathConverter#convertToPr... Open
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:
Sprint: Maintenance 39
Story Points: 5

 Description   

Steps to reproduce

  1. enable i18n feature for your content app, for example categories app
    1. add i18n flag to the displayName field: https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:configuration;/modules/categorization/apps/categories/subApps/detail/editor/form/tabs/category/fields/displayName@i18n:treeview:
  2. switch your language to French
    1. logout and login afterwards
  3. edit a category in the categories app

Expected results

  1. only in i18n configured languages should be available (English and German)
  2. the default language should be selected (English)

Actual results

  1. the editor language is preselected
    1. creation and storing of unused content
    2. confusing for the editor

Workaround

Migrate apps to new UI.

Dev notes

Only reproducible in apps using the legacy ui, such as, contacts, assets, etc. In case of contacts-v8 and dam it is not reproducible.

It also happens in legacy pages app, when a dialog is opened.



 Comments   
Comment by Frank Sommer [ 11/May/21 ]

This issue wasn't fixed at all.

The initial selected language is still the user language instead the default content language. You only fix that the selected language is an allowed content language.

Additional there is a different behaviour between UI-5 and UI-6 apps. In UI-6 app the correct initial content language will bei shown.

Comment by Federico Grilli [ 18/May/21 ]

Just for reference, as Jira somehow doesn't show the related branch/PR, here it is https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/pull-requests/1685/overview

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