From aa8e8fc83798915bfea5153ad9d2b5a6e4dd33cb Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Tue, 5 Mar 2024 10:39:14 +0100 Subject: [PATCH] Do not store FlashMessages in BE session in CLI context --- Classes/Helper/MessageHelper.php | 3 ++- Documentation/ChangeLog/Index.rst | 5 +++++ Documentation/Settings.cfg | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Classes/Helper/MessageHelper.php b/Classes/Helper/MessageHelper.php index 35e0744c..ad2ccc80 100644 --- a/Classes/Helper/MessageHelper.php +++ b/Classes/Helper/MessageHelper.php @@ -11,6 +11,7 @@ namespace JWeiland\Maps2\Helper; +use TYPO3\CMS\Core\Core\Environment; use TYPO3\CMS\Core\Messaging\AbstractMessage; use TYPO3\CMS\Core\Messaging\FlashMessage; use TYPO3\CMS\Core\Messaging\FlashMessageQueue; @@ -39,7 +40,7 @@ public function addFlashMessage(string $message, string $title = '', ContextualF $message, $title, $severity, - true + !Environment::isCli() ); $this->getFlashMessageQueue()->enqueue($flashMessage); diff --git a/Documentation/ChangeLog/Index.rst b/Documentation/ChangeLog/Index.rst index 7c955bb0..0df23fc8 100644 --- a/Documentation/ChangeLog/Index.rst +++ b/Documentation/ChangeLog/Index.rst @@ -7,6 +7,11 @@ ChangeLog ========= +Version 11.0.2 +============== + +* BUGFIX: Do not store FlashMessages in BE session in CLI context + Version 11.0.1 ============== diff --git a/Documentation/Settings.cfg b/Documentation/Settings.cfg index bde6d478..c8a4b853 100644 --- a/Documentation/Settings.cfg +++ b/Documentation/Settings.cfg @@ -1,7 +1,7 @@ [general] project = maps2 (Maps2) version = 11.0 -release = 11.0.1 +release = 11.0.2 copyright = since 2013 by jweiland.net t3author = Stefan Froemken description = This TYPO3 extension supports the rendering of a map based on Google Maps or