From b5b25e68d89e1ebedfe406354e19295cb94924a2 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 18:42:33 +0200 Subject: [PATCH 1/3] [BUGFIX] Invoke addFlashMessage() correctly when deleting a post 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 2642efd..f9d8005 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,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) +- Fix flash message usage when deleting a post (#81) ## 12.0.4 - 2023-09-16 diff --git a/Classes/Controller/PostController.php b/Classes/Controller/PostController.php index b24bbd4..c3e2786 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]); } } From aa72734ddad6d65e4d4a0e9db78905bd1dae0804 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 18:43:39 +0200 Subject: [PATCH 2/3] Adjust changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d8005..fb7ab10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,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) -- Fix flash message usage when deleting a post (#81) +- Fix flash message usage when deleting a post (#83) ## 12.0.4 - 2023-09-16 From 36d4a1f1b2c1fdfd58802e33328e666d474313f2 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 18:44:13 +0200 Subject: [PATCH 3/3] Adjust changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb7ab10..aafa2bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,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) -- Fix flash message usage when deleting a post (#83) +- Invoke addFlashMessage() correctly when deleting a post (#83) ## 12.0.4 - 2023-09-16