[MGNLUI-6858] Languages in switcher not updating on content apps Created: 03/Sep/21  Updated: 10/Mar/23

Status: Open
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2.11
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roberto Gaona Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-09-03-11-36-59-777.png     PNG File image-2021-09-03-11-38-10-355.png     PNG File image-2021-09-03-11-38-34-894.png    
Issue Links:
Problem/Incident
Relates
relates to MGNLUI-3616 Specify content-app available languages Accepted
Template:
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)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Visible to:
Lukasz Skolarus, Marcin Karpeta, Mateusz Czubak, Paulina Jagielka
Epic Link: Dialogs
Team: Nucleus

 Description   

Steps to reproduce

  1. Create new light module app with a new workspace (for example 'products'). Use modal dialog windows to edit content node items. In dialog definition don't define any footerLayout to keep everything default.
    2. In you light module app create following structre using 'mgnl:folder': site_name/region_name, for example /bobcat/na. Then under region add some content node that will represent your item so for example final structure will look like this: /bobcat/na/sample-product.
    3. Create another structure under main folder, for example: /bobcat/eu/another-product.
    4. Using Sites app, create a new site definition with some languages and mappings for workspace of your light module app. Please see attached screenshot where 'products' is the workspace of you app and 'bobcat-na' represents site definition.
    5. Go to your light module app end edit item (using modal dialog) you created in step 2. You will see that combobox has your languages from site definition for your mapping.
    6. Now edit item (using modal dialog) you created in step 3. You will see that the language combobox has the same list of languages as you saw in step 5, however for this mapping there shouldn't be any language.
    7. Hit F5 and repeat step 6. Now you won't see language picker if you didn't define any fallback language, or you will see a list of languages from fallback.

Language dropdown when defined site is selected first:

Language dropdown if fallback site is selected first:

Expected results

Language options should be different for each option since belong to different sites

Actual results

First loaded set of languages is used on all the language switchers rendered until page refresh on that content app.

Workaround

Development notes


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