[MGNLDAM-979] MultiValueField creates problems in combination with damLinkField Created: 20/May/21  Updated: 03/Sep/21  Resolved: 02/Sep/21

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 3.0.9
Fix Version/s: 3.0.10

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: maintenance, ui-team-support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File 1.multiValueField.png     PNG File 2.damLinkFieldAdded.png     Text File magnolia-debug.log    
Issue Links:
Problem/Incident
causality
relation
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: UI framework implementation
Sprint: UI FW 36
Story Points: 2

 Description   

Steps to reproduce

  1.  Create a multiValue field which fields are damLinkField type
    form:
      properties:
        downloads:
              label: Downloads
              $type: jcrMultiValueField
              field:
                $type: damLinkField
                label: Download 
  2. Create the component, clic on "add" button but do not select any image (just create the damLinkField and let it empty)
  3. Save the dialog
  4. Open the component and check that it throws an error (and component is never opened again)

Expected results

DamLinkField is created with empty value, so when it opens it has no image selected.

Actual results

Dialog is saved but when you try to open it, can exception is thrown (check attachments)

Workaround

Include required: true at the damLinkField so you must select an option before saving the dialog

Development notes

Without being nested on the multiValueField (e.g, a simple damLinkField componente), it allows to save an empty dam selection without launching any error on re opening.



 Comments   
Comment by Roman Kovařík [ 03/Sep/21 ]

For release notes: damLinkField can now be used inside of jcrMultiValueField.

Generated at Mon Feb 12 05:05:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.