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

Double and Long types inside jcrMultivalueField are stored as String at JCR

    XMLWordPrintable

Details

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

    Description

      Steps to reproduce

      1. Create a component which has a double field within a jcrMultiField:
        component.yaml
        form:
          properties:
            myField:
              label: My Field
              $type: jcrMultiValueField
              itemProvider:
                class: info.magnolia.ui.editor.MultiValueAsMultipleProperties$Definition
              field:
                name: number
                label: ' '
                $type: textField
                type: java.lang.Double
                converterClass: com.vaadin.data.converter.StringToDoubleConverter 
      2.  Create the component and save a Double value within the number field
      3. Check at JCR that the value has been stored as String instead of Double

      Expected results

      Just as happens for simple fields as Textfield, the value is stored as Double

      Actual results

      The value is stored as String

      Workaround

      N/A

      Development notes

      N/A

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              ccantalapiedra Carlos Cantalapiedra
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD