From a5e24555bf08d4a8201c673c98b00c91283f72de 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 19:00:16 +0200 Subject: [PATCH] [BUGFIX] Invoke addFlashMessage() correctly when deleting a blog Releases: main, 12.4 --- CHANGELOG.md | 2 +- Classes/Controller/BlogController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 497724e..f0107d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +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) +- Invoke addFlashMessage() correctly when deleting a post or a blog (#83, #86) ## 12.0.4 - 2023-09-16 diff --git a/Classes/Controller/BlogController.php b/Classes/Controller/BlogController.php index 36e49ee..51af4d8 100644 --- a/Classes/Controller/BlogController.php +++ b/Classes/Controller/BlogController.php @@ -147,7 +147,7 @@ public function deleteAction(Blog $blog): ResponseInterface { $this->checkBlogAdminAccess(); $this->blogRepository->remove($blog); - $this->addFlashMessage('deleted', ContextualFeedbackSeverity::INFO); + $this->addFlashMessage('The blog has been deleted.', 'deleted', ContextualFeedbackSeverity::INFO); return $this->redirect('index'); }