Skip to content

Commit

Permalink
Do not store FlashMessages in BE session in CLI context
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroemkenjw committed Mar 5, 2024
1 parent fc26002 commit aa8e8fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Classes/Helper/MessageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function addFlashMessage(string $message, string $title = '', ContextualF
$message,
$title,
$severity,
true
!Environment::isCli()
);

$this->getFlashMessageQueue()->enqueue($flashMessage);
Expand Down
5 changes: 5 additions & 0 deletions Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
ChangeLog
=========

Version 11.0.2
==============

* BUGFIX: Do not store FlashMessages in BE session in CLI context

Version 11.0.1
==============

Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aa8e8fc

Please sign in to comment.