From 0626209dff8448fb6f886ba0324abbcfbc069445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:45:01 +0000 Subject: [PATCH] [BUGFIX] Invoke addFlashMessage() correctly when deleting a post (#83) Releases: main, 12.4 --- CHANGELOG.md | 1 + Classes/Controller/PostController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17f2633..497724e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Fixed - Update locallang_db.xlf - missing field names added (#76) - Correct the integration of categories (#77) +- Invoke addFlashMessage() correctly when deleting a post (#83) ## 12.0.4 - 2023-09-16 diff --git a/Classes/Controller/PostController.php b/Classes/Controller/PostController.php index 841a3ea..e4797c2 100644 --- a/Classes/Controller/PostController.php +++ b/Classes/Controller/PostController.php @@ -228,7 +228,7 @@ public function deleteAction( ): ResponseInterface { $this->checkBlogAdminAccess(); $this->postRepository->remove($post); - $this->addFlashMessage('deleted', ContextualFeedbackSeverity::INFO); + $this->addFlashMessage('The post has been deleted.', 'Deleted', ContextualFeedbackSeverity::INFO); return $this->redirect('index', null, null, ['blog' => $blog]); } }