Issue Bug Closed

#79457Ext:form throws errors if select value is a number

Susanne Moog 01/25/17, 09:08 updated 10/02/18, 11:02

Description

Example yaml:

type: Form
identifier: test
label: test
prototypeName: standard
renderables:
  -
    type: Page
    identifier: page-1
    label: Page
    renderables:
      -
        properties:
          options:
            bar: foo
            bum: baz
            123: badam
        type: SingleSelect
        identifier: singleselect-1
        label: 'Single select'

When trying to open that form you get javascript error because the javascript interprets 123: badam as array instead of an object.

Reviews 1