[BUGFIX] FAL upgrade wizard: take care of files in subfolders 64/42664/2
authorJosef Glatz <jousch@gmail.com>
Sun, 16 Aug 2015 18:10:20 +0000 (20:10 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 20 Aug 2015 14:50:24 +0000 (16:50 +0200)
Enable migrating files from uploads/pics/ subdirectories to FAL.

Change-Id: Ife160dd03633dc1da542cad990be3cd166cc1636
Releases: 6.2
Resolves: #69112
Reviewed-on: http://review.typo3.org/42664
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/install/Classes/Updates/TceformsUpdateWizard.php

index a0b9fdf..63e4952 100644 (file)
@@ -313,7 +313,7 @@ class TceformsUpdateWizard extends AbstractUpdate {
                        $fileUid = NULL;
                        $sourcePath = PATH_site . $fieldConfiguration['sourcePath'] . $item;
                        $targetDirectory = PATH_site . $fileadminDirectory . $fieldConfiguration['targetPath'];
-                       $targetPath = $targetDirectory . $item;
+                       $targetPath = $targetDirectory . basename($item);
 
                        // maybe the file was already moved, so check if the original file still exists
                        if (file_exists($sourcePath)) {