Skip to content

Commit

Permalink
Merge pull request #315 from jweiland-net/doNotStoreMessageInBeSession
Browse files Browse the repository at this point in the history
Do not store message in be session
  • Loading branch information
sfroemkenjw committed Mar 5, 2024
2 parents adce7cd + 8470fa2 commit eba2981
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Classes/Helper/MessageHelper.php
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 @@ -38,7 +39,7 @@ public function addFlashMessage(string $message, string $title = '', int $severi
$message,
$title,
$severity,
true
!Environment::isCli()
);

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

Version 10.0.12
===============

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

Version 10.0.11
===============

Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Expand Up @@ -22,7 +22,7 @@

project = maps2 (Maps2)
version = 10.0
release = 10.0.11
release = 10.0.12
t3author = Stefan Froemken
copyright = since 2013 by jweiland.net

Expand Down
6 changes: 3 additions & 3 deletions Tests/Functional/Helper/MessageHelperTest.php
Expand Up @@ -59,7 +59,7 @@ public function addFlashMessageWithMessageCallsEnqueue(): void
'Hello',
'',
AbstractMessage::OK,
true
false
);

$this->subject->addFlashMessage('Hello');
Expand All @@ -79,7 +79,7 @@ public function addFlashMessageWithMessageAndSubjectCallsEnqueue(): void
'Hello',
'Subject',
AbstractMessage::OK,
true
false
);

$this->subject->addFlashMessage('Hello', 'Subject');
Expand All @@ -99,7 +99,7 @@ public function addFlashMessageWithAllArgumentsCallsEnqueue(): void
'Hello',
'Subject',
AbstractMessage::ERROR,
true
false
);

$this->subject->addFlashMessage('Hello', 'Subject', AbstractMessage::ERROR);
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Expand Up @@ -3,7 +3,7 @@
$EM_CONF[$_EXTKEY] = [
'title' => 'Maps2',
'description' => 'Create maps with Marker, Area, Routes or Radius based on Google Maps or OpenStreetMap',
'version' => '10.0.11',
'version' => '10.0.12',
'category' => 'plugin',
'state' => 'stable',
'clearCacheOnLoad' => true,
Expand Down

0 comments on commit eba2981

Please sign in to comment.