[MGNLUI-7624] New multiValueField doesn't support null values Created: 15/Nov/22  Updated: 29/Nov/22

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

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: multiValueField
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
depends upon MAGNOLIA-8636 PropertyUtil: null list value always ... Open
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
Epic Link: FieldsMaintenance
Team: Nucleus

 Description   

Steps to reproduce

  multiValue:
    $type: multiValueField
    field:
      $type: comboBoxField
      datasource:
        $type: optionListDatasource
        options:
          option1:
            value: option1

 

  1. Use the config above in a dialog
  2. Add an empty field (do not pick any option in the combobox)
  3. Save the dialog
  4. Reopen the dialog

Expected results

Empty field is persisted.

Actual results

Empty fields are filtered out.

Workaround

Pick an option (e.g. create and "empty" option)

Development notes

Nulls are filtered in https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/editor/MultiItemConverter.java#73.

Depends on MAGNOLIA-8636.


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