[BUGFIX] Reload available packages information 57/44657/2
authorNicole Cordes <typo3@cordes.co>
Tue, 10 Nov 2015 10:29:37 +0000 (11:29 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 10 Nov 2015 11:35:32 +0000 (12:35 +0100)
If a new extension is fetched or copied to typo3conf directory, the list
of available extensions has to be reloaded.

Resolves: #71455
Releases: master
Change-Id: I512fa2a404271bc46e616b2ae4458798cf73cd8d
Reviewed-on: https://review.typo3.org/44657
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php

index e18ec88..c18338d 100644 (file)
@@ -107,6 +107,7 @@ class ExtensionManagementService implements \TYPO3\CMS\Core\SingletonInterface
     {
         // We have to check for dependencies of the extension first, before marking it for installation
         // because this extension might have dependencies, which need to be installed first
+        $this->installUtility->reloadAvailableExtensions();
         $extension = $this->getExtension($extensionKey);
         $this->dependencyUtility->checkDependencies($extension);
         $this->downloadQueue->addExtensionToInstallQueue($extension);
index 03a0352..51a000b 100644 (file)
@@ -240,6 +240,13 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface
     }
 
     /**
+     * Reset and reload the available extensions
+     */
+    public function reloadAvailableExtensions() {
+        $this->listUtility->reloadAvailableExtensions();
+    }
+
+    /**
      * Wrapper function for loading extensions
      *
      * @param string $extensionKey