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

relink action doesnt work for a link in switchableField

XMLWordPrintable

      in one of our projects we use switchable field where one option is linkField:

      link:
        $type: switchableField
        label: Link target
        i18n: true
        itemProvider:
          $type: currentItemProvider
        field:
          name: link
          i18n: true
          defaultValue: none
          $type: radioButtonGroupField
          datasource:
            $type: optionListDatasource
            options:
            - value: none
              name: 0
              label: None
            - value: internal
              name: 1
              label: Internal
            - value: external
              name: 2
              label: External
            - value: dam
              name: 3
              label: Asset
          layout: horizontal
        forms:
          none:
            properties:
              none:
                $type: staticField
                label: ' '
                i18n: true
                value: ' '
          internal:
            properties:
              internal:
                label: 'Select a page:'
                i18n: true
                $type: linkField
                datasource:
                  $type: jcrDatasource
                  workspace: website
                  allowedNodeTypes:
                  - mgnl:page
                  - mgnl:variants
                  - mgnl:variant
          external:
            properties:
              external:
                label: 'Enter url (including http://):'
                i18n: true
                $type: textField
          dam:
            properties:
              dam:
                i18n: true
                $type: assetDamLinkField
                label: ''
        
        propertyNameDecorator: info.magnolia.ui.field.PrefixNameDecorator
      

      Issue: relink action doesn't change this linkField 

      DEV NOTE:

       

        Acceptance criteria

              yen.lactue Yen Lac Tue
              tgregovsky Tomáš Gregovský
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2d 5h 35m
                    2d 5h 35m