[BUGFIX] Incorrect default extension configuration
authorOliver Hader <oliver@typo3.org>
Thu, 30 Aug 2012 19:38:06 +0000 (21:38 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 30 Aug 2012 20:01:09 +0000 (22:01 +0200)
On installing an extension with an individual configuration, the
persisted information contains too much data (e.g. form label,
name, etc.) is stored as an array.

Change-Id: I87a925fc7d6f0664fc6a4302e4f9abbe6eddf5cf
Fixes: #40450
Releases: 6.0
Reviewed-on: http://review.typo3.org/14231
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/extensionmanager/Classes/Utility/ConfigurationUtility.php

index e44c559..c492543 100644 (file)
@@ -69,7 +69,8 @@ class ConfigurationUtility implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function saveDefaultConfiguration($extensionKey) {
                $currentConfiguration = $this->getCurrentConfiguration($extensionKey);
-               $this->writeConfiguration($currentConfiguration, $extensionKey);
+               $nestedConfiguration = $this->convertValuedToNestedConfiguration($currentConfiguration);
+               $this->writeConfiguration($nestedConfiguration, $extensionKey);
        }
 
        /**