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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.44
    • 6.2.42
    • None
    • None
    • Yes
    • Yes

      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

        Acceptance criteria

              ajuran Antonín Juran
              ccantalapiedra Carlos Cantalapiedra
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started: