Uploaded image for project: 'Live Copy'
  1. Live Copy
  2. LIVECOPY-408

Relink action doesn't work for switchable field inside a complex structure

XMLWordPrintable

      Steps to reproduce

      1.  use this dialog definition in a template, for example, in HTML
        label: C22 Teaser group 
        form:
          properties:
            header:
              label: Component header
              $type: compositeField
              itemProvider:
                $type: jcrChildNodeProvider
            teasers:
              $type: jcrMultiField
              label: Teasers
              minItems: 2
              maxItems: 3
              field:
                $type: compositeField
                label: ""
                properties:
                  teaser:
                    $type: switchableField
                    label: Teaser type (internal/external)
                    field:
                      name: type
                      $type: radioButtonGroupField
                      layout: horizontal
                      datasource:
                        $type: optionListDatasource
                        options:
                          - name: internal
                            value: internal
                            label: Internal
                          - name: external
                            value: external
                            label: External
                      defaultValue: internal
                    itemProvider:
                      $type: jcrChildNodeProvider
                    forms:
                      - name: internal
                        properties:
                          internalTeaser:
                            $type: pageLinkField
                            showOptions: true
                            textInputAllowed: true
                            converterClass: info.magnolia.ui.editor.converter.JcrNodeToPathConverter 
                      - name: external
                        properties:
                          externalTeaser:
                            $type: linkField
                            label: link to external Teaser
                            datasource:
                              $type: jcrDatasource
                              workspace: teaserPool
        
      2. Add the component in the master.
      3. Push changes to the copy including Automatically relink (it also happens if the actions is done after pushing with action Relink all pages to livecopy pages

      Expected results

      Internal links inside the switchable link are relinked to the copy.

      Actual results

      Internal links keep pointing to the master

      Workaround

      Keep it simple and try to use switchable fields in the first layer instead of inside a multifield > composite.

      Development notes

      It works when switchable field is at the first level, not inside complex fields like multifield or composite field

        Acceptance criteria

              ajuran Antonín Juran
              miruela Mercedes Iruela
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD