Project

General

Profile

Actions

Bug #82186

closed

sysext form: select option triggers php exception under certain conditions

Added by Peter Linzenkirchner over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2017-08-23
Due date:
% Done:

100%

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

Description

Try this:
build a short form with one select field.
use for one option a label with a . (dot) in it e.g. test.test. Copy this in the value field too.
Save the form. Everything is correct, the yaml file is correct and the output in the frontend too.
Close the form modul in the backend and reopen it. Activate the select field:
- the option is vanished
- in the widget for the options you see: [object Object] and in Value test.
Save the form once again. The yaml file now contains errors:
options:
test:
test: test.test
and the front throws this error:

Uncaught TYPO3 Exception
#1476107295: PHP Warning: get_class() expects parameter 1 to be object, array given in /Volumes/web/src/typo3_src-8.7.4/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php line 231 (More information)

TYPO3\CMS\Core\Error\Exception thrown in file
/Volumes/web/src/typo3_src-8.7.4/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 112.


the dot is necessairy for dates or many other special labels. It seems that the error occurs when the form wizard reads the yaml file.

Actions #1

Updated by Björn Jacob over 6 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53956

Actions #3

Updated by Ralf Zimmermann over 6 years ago

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

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Resolved to Under Review

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/53984

Actions #5

Updated by Ralf Zimmermann over 6 years ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF