[BUGFIX] Allow "defaultValue" for select form elements 47/57647/8
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 08:50:38 +0000 (10:50 +0200)
commit73536c1d9417dc7332e2c98a3d8c45cc84e55946
tree33ee323d34d52445fb119cba29c567f7e45fcf40
parente8b5531843ac0f6b5a363aa3d346ad51d0dcaf40
[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/57647
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
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