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

Saving JcrMultiField on locale containing "_" results in wrong naming of the JCR nodes

XMLWordPrintable

    • Yes
    • Nucleus 32
    • 3

      Steps to reproduce

      1. Configure a dialog with a jcrMultiField property
      2. Configure multiple locales such as "en_GB" and "de_DE" (must have underscores)
      3. Save jcrMultiField entries on those locales.

      Definition used for the jcrMultiField property:

        form:
          properties:
            randomText:
              $type: textField
              label: Random text here
            mediaList:
              $type: jcrMultiField
              i18n: true
              required: false
              field:
                name: mediaSwitchable
                $type: switchableField
                field:
                  $type: radioButtonGroupField
                  name: mediaSwitchable
                  layout: horizontal
                  defaultValue: image
                  datasource:
                    $type: optionListDatasource
                    options:
                      - name: image
                        label: global.label.image
                        value: image
                      - name: video
                        label: Youtube
                        value: video
                itemProvider:
                  $type: currentItemProvider
                forms:
                  - name: image
                    properties:
                      image:
                        $type: damLinkField
                        required: true
                  - name: video
                    properties:
                      video:
                        $type: compositeField
                        itemProvider:
                          $type: currentItemProvider
                        label: ""
                        properties:
                          youtubeId:
                            $type: textField
                            required: true
                            label: Youtube ID
                          placeholderImage:
                            $type: damLinkField
                            required: true
                            label: placeholderImage 

      Find attached a i18n node configuration for the site: config.modules.multisite.config.sites.travel.i18n.xml

      Expected results

      Data is stored in JCR without issues, naming each locale nodes after their respective locale.

      Actual results

      Node's locale gets repeated and extended every time an edit is done on the item:

      Workaround

      Development notes

        Acceptance criteria

              ajuran Antonín Juran
              rgaona Roberto Gaona
              Thomas Duffey
              Nucleus
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 2.5d
                  2.5d