[BUGFIX] EXT:form - fix values with dots within form editor 84/53984/2
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Thu, 7 Sep 2017 15:16:13 +0000 (17:16 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 8 Sep 2017 08:48:07 +0000 (10:48 +0200)
Fix JavaScript errors if "properties.options" array keys contain dots.

Resolves: #80197
Resolves: #82210
Resolves: #81961
Resolves: #82186
Releases: master, 8.7
Change-Id: Idfa976bca2ba5bbe08a72852f306c83d84b8eef0
Reviewed-on: https://review.typo3.org/53984
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/Core.js

index 9be812a..cdafabd 100644 (file)
@@ -718,6 +718,8 @@ define(['jquery'], function($) {
 
                     if ('object' === $.type(modelExtension[key]) || 'array' === $.type(modelExtension[key])) {
                         extendModel(modelToExtend, modelExtension[key], path, disablePublishersOnSet);
+                    } else if (pathPrefix === 'properties.options') {
+                        modelToExtend.set(pathPrefix, modelExtension, disablePublishersOnSet);
                     } else {
                         modelToExtend.set(path, modelExtension[key], disablePublishersOnSet);
                     }