[BUGFIX] Allow "defaultValue" for select form elements 09/57709/2
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Fri, 20 Jul 2018 20:54:32 +0000 (22:54 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 29 Jul 2018 09:01:22 +0000 (11:01 +0200)
commit3caf12240148d59e528479ab9749e2b664b78da0
treec6abab5188c24e3f21c062cebea08715e5d2054d
parentffa5c429e1e28fdab807e20446f32cfeb380aa9b
[BUGFIX] Allow "defaultValue" for select form elements

Allows the form editor to save the property "defaultValue" for
"Inspector-PropertyGridEditor" inspector editors. This rules for the
form element types "SingleSelect", "RadioButton", "MultiCheckbox"
and "MultiSelect".

Besides that a flaw in JavaScript is solved that truncated values
by one character (e.g. having "propert" instead of "property"), as
well as having a correct representation of objects and arrays when
initializing them in JavaScript.

Resolves: #85608
Resolves: #85670
Releases: master, 8.7
Change-Id: Ia82ee236e6becb36db13fb15e96c7caceab370d1
Reviewed-on: https://review.typo3.org/57709
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/Domain/Configuration/FrameworkConfiguration/Extractors/FormElement/MultiValuePropertiesExtractor.php
typo3/sysext/form/Classes/Domain/Configuration/FrameworkConfiguration/Extractors/PropertyCollectionElement/MultiValuePropertiesExtractor.php
typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/Core.js
typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php