Project

General

Profile

Actions

Bug #84448

closed

Form editor breaks if property path does not exists

Added by Ralf Zimmermann about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Form Framework
Target version:
-
Start date:
2018-03-17
Due date:
% Done:

100%

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

Description

The form editor breaks if an property path which should be validated within the form editor does not exists within the form definition and this property is not defined through the 'predefinedDefaults'.

Actions #1

Updated by Gerrit Code Review about 6 years ago

  • Status changed from Accepted 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/56326

Actions #2

Updated by Ralf Zimmermann about 6 years ago

  • Description updated (diff)
Actions #3

Updated by Ralf Zimmermann about 6 years ago

Test is:

formDefinition:

type: Form
identifier: test
label: test
prototypeName: standard
renderables:
  -
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        type: Number
        identifier: number-1
        label: Number

defaultValue is not set but should be validated within the form editor.

No fake an incomplete setup.
Goto EXT:form/Configuration/Yaml/FormEditorSetup.yaml and search for

          TextMixin:
            formEditor:
              predefinedDefaults:
                defaultValue: ''

remove the line with 'defaultValue'

          TextMixin:
            formEditor:
              predefinedDefaults:
#                defaultValue: ''

Clear caches, go to the form editor and open this form.
Without the patch, the form editor breaks and show the spinner endless.

Actions #4

Updated by Gerrit Code Review about 6 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/56326

Actions #5

Updated by Gerrit Code Review about 6 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/56326

Actions #6

Updated by Gerrit Code Review about 6 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/56326

Actions #7

Updated by Gerrit Code Review about 6 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56716

Actions #8

Updated by Ralf Zimmermann about 6 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF