[BUGFIX] Do not write empty array values in form definitions 44/56744/3
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Tue, 20 Feb 2018 22:44:00 +0000 (23:44 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 19 Apr 2018 18:37:47 +0000 (20:37 +0200)
commitca5824810de4ca693ec05887fb0540a7317248c8
treeeda0e3658442b6fa26ef0047bf865822706521f7
parent9fc37bd4ae4b3191ab8d28355936cd4b716f1f8f
[BUGFIX] Do not write empty array values in form definitions

Symfony YAML dumps empty arrays as sequence ("{  }"). Due to this, some
JavaScript modules of the form framework fail to interpret/ set the
correct data type for those properties.

If applied, this commit will ensure that the formEditor unsets empty
array keys on load/ save.

The problem only affects the backend module, not the frontend
formDefinition interpreter.

Resolves: #83985
Releases: master, 8.7
Change-Id: I913b8954790510b4ffcc80a47f9dbb7646239ff1
Reviewed-on: https://review.typo3.org/55848
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Tested-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Kay Strobach <typo3@kay-strobach.de>
Tested-by: Kay Strobach <typo3@kay-strobach.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-on: https://review.typo3.org/56744
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/form/Classes/Controller/FormEditorController.php
typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/InspectorComponent.js
typo3/sysext/form/Tests/Unit/Controller/FormEditorControllerTest.php