[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/57728 Reviewed-by:Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/form/Classes/Domain/Configuration/FrameworkConfiguration/Extractors/FormElement/MultiValuePropertiesExtractor.php 41 additions, 16 deletions.../Extractors/FormElement/MultiValuePropertiesExtractor.php
- typo3/sysext/form/Classes/Domain/Configuration/FrameworkConfiguration/Extractors/PropertyCollectionElement/MultiValuePropertiesExtractor.php 3 additions, 0 deletions...opertyCollectionElement/MultiValuePropertiesExtractor.php
- typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/Core.js 19 additions, 4 deletions...rm/Resources/Public/JavaScript/Backend/FormEditor/Core.js
- typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php 2 additions, 0 deletions...ts/Unit/Domain/Configuration/ConfigurationServiceTest.php
Please register or sign in to comment