Bug #88240
closedext:form "Inspector-PropertyGridEditor" does not evaluate defaultValue in all scenarios
100%
Description
Within the ext:form form editor backend Module, there is an inspectors for "multi value" properties (e.g. for RadioButton or SingleSelect) called "Inspector-PropertyGridEditor".
Within this inspector you can choose a preselected value
This preselection will be written to the form definition correctely (property "defaultValue"), but the inspector code does not interprete the "defaultValue" in the right way in some scenarios.
If you use integer numbers as value, the "properties.options" property keys within the form definition will be written as integer numbers, but the "defaultValue" property will be written as string.
The result is no preselection (visual) within the form editor after the reloading of the "Inspector-PropertyGridEditor" (e.g. after clicking the "save" button).
Expected behavior: A preselection within the form editor must be displayed.
Current output of the form definition after saving (does not show the preselection within the form editor):
type: Form identifier: t1 label: test prototypeName: standard renderables: type: Page identifier: page-1 label: Step renderables: - type: RadioButton identifier: radiobutton-1 label: 'Radio button' defaultValue: '1' properties: options: 1: 'yes' 2: 'no'
Working example (note that "defaultValue" is an integer):
type: Form identifier: t1 label: test prototypeName: standard renderables: type: Page identifier: page-1 label: Step renderables: - type: RadioButton identifier: radiobutton-1 label: 'Radio button' defaultValue: 1 properties: options: 1: 'yes' 2: 'no'
Files