[MGNLUI-8426] Switchable Field i18n validation error Created: 06/Oct/23  Updated: 26/Oct/23  Resolved: 24/Oct/23

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

Type: Bug Priority: Neutral
Reporter: Antonín Juran Assignee: Antonín Juran
Resolution: Obsolete Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLUI-6918 Switchable Field i18n validation error Closed
relation
is related to MGNLUI-6918 Switchable Field i18n validation error Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-8427 Implementation Sub-task To Do  
MGNLUI-8428 Review Sub-task To Do  
MGNLUI-8429 PreintQA Sub-task To Do  
MGNLUI-8430 QA Sub-task To Do  
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
Release notes required:
Yes
Team: Nucleus

 Description   

Steps to reproduce

  1. Define a component as the following (do not set default value for radioButtonGroupField as it was on MGNLUI-6918 ticket)
    form:
      properties:
        - name: switchMe
          $type: switchableField
          i18n: true
          field:
            $type: radioButtonGroupField
            required: true
            layout: horizontal
            datasource:
              $type: optionListDatasource
              options:
                - name: internal
                  value: internal
                - name: external
                  value: external
          itemProvider:
            $type: jcrChildNodeProvider
          forms:
            - name: internal
              properties:
                internal:
                  $type: pageLinkField
                  required: true
            - name: external
              properties:
                external:
                  $type: textField
                  required: true 
  1. Create it on a site which has multiple languages enabled
  2. Switch to locale which is not default one
  3. Select one option on switchMe field
  4. Click on submit
  5. Check the dialog doesn't close but no error is shown
  6. Move to other language and check the error of required field is printed

Expected results

Some kind of advice is shown to let the editor know he must fulfill the switchMe field for all languages as far as it is required

Actual results

The error is shown only if the editor switch to other language

Workaround

N/A

Development notes

N/A



 Comments   
Comment by Antonín Juran [ 24/Oct/23 ]

Fixed by https://jira.magnolia-cms.com/browse/MGNLUI-8383

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