[BUGFIX] Distributions: Import files before database 28/34428/4
authorSascha Egerer <sascha.egerer@dkd.de>
Fri, 21 Nov 2014 08:27:39 +0000 (09:27 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Fri, 30 Jan 2015 18:33:37 +0000 (19:33 +0100)
The distribution import does sometimes not import the Assets
(Resources/Files/) of the distribution. This is because the
t3d-file is imported before the files are imported.
That means that the t3d import will create FAL file relations
to files that do not exists. This will end up in an FAL exception.
Files should be imported before the t3d-file is imported.

Resolves: #63121
Releases: master,6.2
Change-Id: Ibb3695b0b92ed2a257380c8684e4451851a2248f
Reviewed-on: http://review.typo3.org/34428
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Sebastian Fischer <typo3@evoweb.de>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>

index 890587e..a03a83e 100644 (file)
@@ -99,9 +99,9 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
        public function install($extensionKey) {
                $extension = $this->enrichExtensionWithDetails($extensionKey);
+               $this->importInitialFiles($extension['siteRelPath'], $extensionKey);
-               $this->importInitialFiles($extension['siteRelPath'], $extensionKey);
                if (!$this->isLoaded($extensionKey)) {