[BUGFIX] Preserve order of finisher options in Form CE 20/57420/4
authorIoulia Kondratovitch <ik@plan2.net>
Fri, 29 Jun 2018 19:30:59 +0000 (21:30 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 22 Jul 2018 14:19:04 +0000 (16:19 +0200)
In content elements of form_formframework, the order of
finisher options offered for overriding will be
in accordance with the order defined in FormEditorSetup.yaml.

Resolves: #85435
Releases: master, 8.7
Change-Id: Ie506858bc363c62af02a123b27c84cb9754dbda3
Reviewed-on: https://review.typo3.org/57420
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/form/Classes/Hooks/DataStructureIdentifierHook.php

index 4c3572b..9feb6c7 100644 (file)
@@ -256,8 +256,6 @@ class DataStructureIdentifierHook
                 $sheetElements['settings.finishers.' . $finisherIdentifier . '.' . $optionKey] = $elementConfiguration;
             }
 
-            ksort($sheetElements);
-
             $sheet[$sheetIdentifier]['ROOT']['el'] = $sheetElements;
             ArrayUtility::mergeRecursiveWithOverrule($sheets['sheets'], $sheet);
         }