[LIVECOPY-272] relink action doesnt work for a link in switchableField Created: 01/Jul/21  Updated: 04/Aug/21  Resolved: 29/Jul/21

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

Type: Bug Priority: Critical
Reporter: Tomáš Gregovský Assignee: Yen Lac Tue
Resolution: Fixed Votes: 0
Labels: VN-Implementation, VN-Testing, maintenance
Remaining Estimate: 0d
Time Spent: 2d 5h 35m
Original Estimate: Not Specified

Issue Links:
Relates
relates to LIVECOPY-271 [Test after LIVECOPY-272] Relink feat... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* 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:
Epic Link: Live Copy maintenance
Sprint: Content Mngmt 09
Story Points: 5

 Description   

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:

 



 Comments   
Comment by Evzen Fochr [ 12/Jul/21 ]

ldelnevo it seems like a bug to me. Protecting fields one by one in switchable field is a different story.

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