[BUGFIX] EM: Missing message when installing incompatible extension 07/25307/2
authorNicole Cordes <typo3@cordes.co>
Tue, 12 Nov 2013 13:31:55 +0000 (14:31 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 12 Nov 2013 13:45:01 +0000 (14:45 +0100)
If you try to install an extension which depends on a TYPO3 version
lower that the current one the extension isn't installed and any
error is shown. This patch adds the flash message to the queue so it is
visible afterwards.

Resolves: #53461
Releases: 6.2
Change-Id: Id35987db9b4d24e2161863186ebbe5683a7738fc
Reviewed-on: https://review.typo3.org/25307
Reviewed-by: Steffen Ritter
Reviewed-by: Oliver Hader
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Tested-by: Oliver Hader
typo3/sysext/extensionmanager/Classes/Controller/ActionController.php

index c9960c8..68c67f2 100644 (file)
@@ -85,6 +85,7 @@ class ActionController extends \TYPO3\CMS\Extensionmanager\Controller\AbstractCo
                                \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
                                TRUE
                        );
+                       $this->getControllerContext()->getFlashMessageQueue()->enqueue($flashMessage);
                } catch (\TYPO3\Flow\Package\Exception\PackageStatesFileNotWritableException $e) {
                        $flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
                                'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',