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

MultiValueCompositeLinkField can not relink and show auto protect icon in CompatibilityRewirePageLinksHelper

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1.  Prepare dialog for MultiValueCompositeLinkField and MultiValueLinkField as below
      2. form:
          tabs:
            - name: tabMain
              label: Main
              fields:
                - name: multiValueRichText
                  fieldType: multiValue
                  label: multi field with rich text
                  field:
                    class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition
                    label: rich text
                - name: multiValueLinkField
                  fieldType: multiValue
                  label: multi field with linkfield 
                  field:
                    class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
                    targetWorkspace: website
                    appName: pages
                    identifierToPathConverter:
                      class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
                    type: String
                - name: multiValueComposite
                  fieldType: multiValue
                  label: multi field with composite rich text + link field
                  transformerClass: info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodePropertiesTransformer
                  field:
                    name: compositeField
                    fieldType: composite
                    transformerClass: info.magnolia.ui.form.field.transformer.composite.NoOpCompositeTransformer
                    fields:
                      - name: richtext
                        class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition
                        label: rich text
                      - name: linkfield
                        class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
                        targetWorkspace: website
                        appName: pages
                        identifierToPathConverter:
                          class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
                        type: String
        actions:
          commit:
            class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
          cancel:
            class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
        
      1. Or using quotation-old component that in my attached template (defined as new ui framework) hello-magnolia.zip
      2. Create link field for both fields
      3. Create live copy
      4. Select slave page
      5. Click to relink action and check to checkbox as below  
      6. Open slave page in detail and check
      7. See MultiValueLinkField can relink and show auto protect but not for MultiValueCompositeLinkField   
      8. Both field don't see protect icon red

      .. Logs, screenshots, gifs...

      Expected results

      • See MultiValueCompositeLinkField,MultiValueLinkField can relink in link field
      • Both fields show protect red icon

      Actual results

      • See MultiValueLinkField can relink and show auto protect but not for MultiValueCompositeLinkField

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          1. hello-magnolia.zip
            9 kB
          2. old-frame-work.png
            old-frame-work.png
            213 kB
          3. relink-and-protect.png
            relink-and-protect.png
            107 kB

          Issue Links

            Activity

              People

                oanh.thai Oanh Thai Hoang
                oanh.thai Oanh Thai Hoang
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

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

                      Jenkins

                        No builds found.