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
Updated by Ralf Zimmermann over 5 years ago
- Related to Bug #87353: Ext. FORM: Radio-Buttons with "defaultValue" doesn't work properly added
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review about 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review about 5 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review almost 5 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review almost 5 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review almost 5 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60616
Updated by Gerrit Code Review almost 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62401
Updated by Anonymous almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2323ed62953de9cf6e2112e3e0c19e34a88304a3.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed