[BUGFIX] Configuration of an extension fails with fatal error
The extensionmanager tries to merge the default configuration with the already saved one. If no configuration has been set yet, the result of the unserialize operation is a boolean false instead of an array and that is causing a fatal error when it tries to merge both configurations with the ArrayUtility::flatten method This patch adds a check that sets the current configuration to an empty array if none exists. Change-Id: Ibbc92e580e94e03452e7a40800374f086488a14b Resolves: #40864 Releases: 6.0 Reviewed-on: http://review.typo3.org/14548 Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn
Showing
- typo3/sysext/extensionmanager/Classes/Domain/Repository/ConfigurationItemRepository.php 10 additions, 4 deletions...Classes/Domain/Repository/ConfigurationItemRepository.php
- typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ConfigurationItemRepositoryTest.php 75 additions, 1 deletion...nit/Domain/Repository/ConfigurationItemRepositoryTest.php
Please register or sign in to comment