Implement a simple, datasource agnostic, multiValueField (MGNLUI-7457)

[MGNLUI-7548] Faulty validation of multi fields might block save action Created: 04/Oct/22  Updated: 07/Nov/22  Resolved: 06/Oct/22

Status: Completed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Neutral
Reporter: Josh Beckerleg Assignee: Roman Kovařík
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:
Sprint: Nucleus 20
Team: Nucleus

 Description   

Steps to reproduce

  1. Given a dialog: 
    properties:
      multi:
        $type: jcrMultiField
        minItems: 2
        field:
          $type: compositeField
            properties:
              text:
                $type: textField
  1. Edit a component with this dialog.
  2. Add two items.
  3. Try to save the dialog,

Expected results

Users can save the dialog.

Actual results

Validation error <[Please enter at least 2 items.]>

Workaround

Remove minItems, maxItems, required config from the multiField.

Development notes



 Comments   
Comment by Roman Kovařík [ 07/Nov/22 ]

Commits under a wrong ticket https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/pull-requests/2217/commits

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