[MGNLUI-6658] Edit Dialog looses composite field labels on language switch Created: 15/Apr/21  Updated: 17/Nov/21  Resolved: 21/Oct/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.12
Fix Version/s: 6.2.13

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: maintenance, ui-team-support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
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
Sprint: UI FW 39
Story Points: 3

 Description   

Steps to reproduce

  1.  Create a composite dialog which contains some i18n fields, e.g:
    form:
      tabs:
        - name: tabEvent
          label: Event
          fields:
            - name: event1
              fieldType: composite
              fields:
                - name: title
                  fieldType: text
                  i18n: true
                - name: date
                  fieldType: date
                  label: tabEvent.event1.date.label
            - name: event2
              fieldType: composite
              fields:
                - name: title
                  fieldType: text
                  i18n: true
                - name: date
                  fieldType: date
                  label: tabEvent.event2.date.label
    actions:
      commit:
        class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
      cancel:
        class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition 
  1.  Create the component and once it is open, change the language
  2. Check the label of the composite field is lost and doesn't come back even switching back to the original language

Expected results

The composite field label is not deleted

Actual results

The composite field label disappears 

Workaround

N/A 

Development notes

It also happens if declaring component with the new UI


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