Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-8383

Trigger validating on changed field of subform on another language

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Decorate a pages component e.g: textImage.yaml
      form:
        properties:
          link:
            $type: switchableField
            i18n: true
            field:
              $type: radioButtonGroupField
              layout: horizontal
              defaultValue: internal
              datasource:
                $type: optionListDatasource
                options:
                  - name: internal
                    value: internal
                  - name: external
                    value: external
            itemProvider:
              $type: jcrChildNodeProvider
            forms:
              - name: internal
                properties:
                  internal:
                    label: brz-site-base.dialogs.base.link.options.internal
                    $type: pageLinkField
                    required: true
                    buttonSelectNewLabel: standardButtons.buttonSelectNewLabel
              - name: external
                properties:
                  external:
                    label: brz-site-base.dialogs.base.link.options.external
                    $type: textField
                    required: true
        layout: !override
          $type: tabbedLayout
          tabs: !override
            - name: tabText
              fields: !override
                - name: link
            - name: tabImage
              fields:
      1. Add the component to a multi languages site, e.g: travel page
      2. Fulfil all required fields of the switchable field on every language subform, e.g: de, en; and then save the component
      3. Open the component again and delete value of one required field in subform, then switch to the other language and then save the component

      Expect result:

      • The component cannot be saved and
      • Switch to the locale that contains the invalid field

        Actual result:

      The component is saved without any warning

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsarf Jaromir Sarf
                thien.quach Quach Hao Thien
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 6d 1h
                      6d 1h