[BUGFIX] Updating deactivated extensions installs them 48/31348/2
authorNicole Cordes <typo3@cordes.co>
Fri, 4 Jul 2014 22:59:48 +0000 (00:59 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 5 Jul 2014 13:23:22 +0000 (15:23 +0200)
If you update a deactivated extension it becomes activated afterwards.
This patch change from the installExtension function to
downloadMainExtension function because on updates it is enough to
download the new extension.

Resolves: #59631
Releases: 6.3, 6.2
Change-Id: Idec8c1f3521fa03241def5e171718b42cc31ce6b
Reviewed-on: https://review.typo3.org/31348
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extensionmanager/Classes/Controller/DownloadController.php

index c82c07d..116a4b7 100644 (file)
@@ -181,18 +181,16 @@ class DownloadController extends AbstractController {
        protected function updateExtensionAction() {
                $hasErrors = FALSE;
                $errorMessage = '';
-               $result = array();
 
                $extensionKey = $this->request->getArgument('extension');
                $highestTerVersionExtension = $this->extensionRepository->findHighestAvailableVersion($extensionKey);
                try {
-                       $result = $this->managementService->installExtension($highestTerVersionExtension);
+                       $this->managementService->downloadMainExtension($highestTerVersionExtension);
                } catch (\Exception $e) {
                        $hasErrors = TRUE;
                        $errorMessage = $e->getMessage();
                }
-               $this->view->assign('result', $result)
-                       ->assign('extension', $highestTerVersionExtension)
+               $this->view->assign('extension', $highestTerVersionExtension)
                        ->assign('hasErrors', $hasErrors)
                        ->assign('errorMessage', $errorMessage);
        }