[LIVECOPY-34] Relink doesn't work with composite fields Created: 05/Jul/18  Updated: 17/Sep/18  Resolved: 17/Sep/18

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Marvin Kerkhoff Assignee: Jan Schulte
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The Relink Action doesn't work with following Switchable Field combined with a composite Field.

name: type
class: info.magnolia.ui.form.field.definition.SwitchableFieldDefinition
transformerClass: info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
required: true
selectionType: radio
type: String
i18n: true
label: generic.fields.linktype.label
options:
  - name: typeInternal
    label: generic.fields.linktype.internal
    selected: true
    value: typeInternal
  - name: typeExternal
    label: generic.fields.linktype.external
    selected: false
    value: typeExternal
  - name: typeDownload
    label: generic.fields.linktype.download
    selected: false
    value: typeDownload
fields:
  - name: typeInternal
    class: info.magnolia.ui.form.field.definition.CompositeFieldDefinition
    layout: vertical
    required: true
    transformerClass:  info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
    i18n: true
    label: generic.fields.external.externalLink
    fields:
      - name: LinkText
        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        name: typeInternalLinkText
        label: generic.fields.external.linkText
      - name: Link
        class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
        targetWorkspace: website
        appName: pages
        name: typeInternal
        identifierToPathConverter:
          class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
        label: generic.fields.internal.page
      - name: typeInternalLinkTarget
        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        label: Target
        placeholder: "type _blank to open in new window"
  - name: typeExternal
    i18n: true
    class: info.magnolia.ui.form.field.definition.CompositeFieldDefinition
    layout: vertical
    required: true
    transformerClass: info.magnolia.ui.form.field.transformer.composite.CompositeTransformer
    i18n: true
    label: generic.fields.external.externalLink
    fields:
      - name: LinkText
        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        label: generic.fields.external.linkText
      - name: Link
        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        label: generic.fields.external.url
      - name: LinkTarget
        class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        label: Target
        placeholder: "type _blank to open in new window"
  - name: typeDownload
    i18n: true
    class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
    targetWorkspace: contentservDam
    appName: contentservDam
    identifierToPathConverter:       
      class: com.contentserv.fields.converter.ContentservIdentifierToPathConverter
    contentPreviewDefinition:
      contentPreviewClass: com.contentserv.app.ContentservFilePreviewComponent
    required: true
    label: generic.fields.download.file


 Comments   
Comment by Jan Schulte [ 31/Jul/18 ]

To be release with 2.0.3 (5.6) and 2.1.1 (5.7)

 

Comment by Jan Schulte [ 17/Sep/18 ]

2.1.1 -> M5.7

2.0.3 -> M5.6

Generated at Mon Feb 12 02:24:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.