Bug #82186
closedsysext form: select option triggers php exception under certain conditions
100%
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.
Updated by Gerrit Code Review about 7 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
Updated by Ralf Zimmermann about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c801d388547e96df42baff3f023d6a7b8f733b34.
Updated by Gerrit Code Review about 7 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
Updated by Ralf Zimmermann about 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset b4b32de503ef0eb4df520dc0cf41f0fd84376bb3.