[BUGFIX] EXT:form load yaml configurations in defined order 94/51494/2
authorThorben Nissen <thorben.nissen@kapp-hamburg.de>
Wed, 1 Feb 2017 10:31:08 +0000 (11:31 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 2 Feb 2017 14:40:08 +0000 (15:40 +0100)
Changes configuration loading of yaml configurations. Orders the yaml configuration
by the numeric keys defined in TypoScript.

Resolves: #79578
Releases: master
Change-Id: Id1fe072b024ec58bf0e1867cff97d60b12ee6589
Reviewed-on: https://review.typo3.org/51494
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Tested-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Classes/Mvc/Configuration/ConfigurationManager.php

index c70e32a..754f63f 100644 (file)
@@ -104,7 +104,7 @@ class ConfigurationManager extends ExtbaseConfigurationManager implements Config
             $extensionName
         );
         $yamlSettingsFilePaths = isset($typoscriptSettings['yamlConfigurations'])
-            ? $typoscriptSettings['yamlConfigurations']
+            ? ArrayUtility::sortArrayWithIntegerKeys($typoscriptSettings['yamlConfigurations'])
             : [];
         $yamlSettings = InheritancesResolverService::create($this->yamlSource->load($yamlSettingsFilePaths))
             ->getResolvedConfiguration();