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

MultiValueCompositeRichTextField, MultiValueRichTextField can't relink, can't auto protect in CompatibilityRewirePageLinksHelper

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1.  Prepare dialog for MultiValueCompositeRichTextField and MultiValueRichTextField 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 rich text field for both fields and add link to current page inside rich text field
      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 MultiValueCompositeRichTextField, MultiValueRichTextField can't relink and can't auto protect   
      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

      • MultiValueCompositeRichTextField, MultiValueRichTextField can't relink and can't auto protect 

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                thien.quach Quach Hao Thien
                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 - 4.5d
                      4.5d

                      Jenkins

                        No builds found.