Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7624

New multiValueField doesn't support null values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                rkovarik Roman Kovařík
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD