[BUGFIX] Distributions: Import files before database 66/36466/2
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:34:11 +0000 (19:34 +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/36466
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php

index 4f76380..f466e12 100644 (file)
@@ -98,9 +98,9 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function install($extensionKey) {
                $extension = $this->enrichExtensionWithDetails($extensionKey);
+               $this->importInitialFiles($extension['siteRelPath'], $extensionKey);
                $this->processDatabaseUpdates($extension);
                $this->ensureConfiguredDirectoriesExist($extension);
-               $this->importInitialFiles($extension['siteRelPath'], $extensionKey);
                if (!$this->isLoaded($extensionKey)) {
                        $this->loadExtension($extensionKey);
                }