Project

General

Profile

Actions

Bug #79457

closed

Ext:form throws errors if select value is a number

Added by Susanne Moog almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Form Framework
Target version:
-
Start date:
2017-01-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Susanne Moog almost 8 years ago

  • Category set to Form Framework
Actions #2

Updated by Susanne Moog almost 8 years ago

with correct indent:


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'

Actions #3

Updated by Ralf Zimmermann almost 8 years ago

  • Assignee set to Ralf Zimmermann
Actions #4

Updated by Mathias Schreiber almost 8 years ago

  • Description updated (diff)
Actions #5

Updated by Gerrit Code Review almost 8 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/51421

Actions #6

Updated by Ralf Zimmermann almost 8 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF