[BUGFIX] Check for empty select icon setting in TcaMigration 24/43224/4
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Sat, 12 Sep 2015 07:56:25 +0000 (09:56 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 12 Sep 2015 14:00:58 +0000 (16:00 +0200)
The migrateExtAndSysextPathToEXTPath() method in the TcaMigration
checks if the icon path setting is empty before building the
paths.

Resolves: #69707
Releases: master
Change-Id: I8e1c37187da825459c5392f4115cb9ab75b99cc8
Reviewed-on: http://review.typo3.org/43224
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Migrations/TcaMigration.php

index 53bf5dc..0b0aec4 100644 (file)
@@ -417,7 +417,7 @@ class TcaMigration {
                                ) {
                                        foreach ($fieldConfig['config']['items'] as &$itemConfig) {
                                                // more then two values? then the third entry is the image path
-                                               if (count($itemConfig) > 2) {
+                                               if (!empty($itemConfig[2])) {
                                                        // If the path starts with ext/ or sysext/ migrate it
                                                        if (
                                                                StringUtility::beginsWith($itemConfig[2], 'ext/')