Project

General

Profile

Actions

Bug #88240

closed

ext:form "Inspector-PropertyGridEditor" does not evaluate defaultValue in all scenarios

Added by Ralf Zimmermann over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-04-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

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

be-yes.png (5.9 KB) be-yes.png Ralf Zimmermann, 2019-04-28 12:37

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #87353: Ext. FORM: Radio-Buttons with "defaultValue" doesn't work properlyClosed2019-01-07

Actions
Actions #1

Updated by Ralf Zimmermann over 5 years ago

  • Related to Bug #87353: Ext. FORM: Radio-Buttons with "defaultValue" doesn't work properly added
Actions #2

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

Actions #3

Updated by Susanne Moog about 5 years ago

  • Sprint Focus set to Remote Sprint
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

Updated by Anonymous almost 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF