diff --git a/CHANGELOG.md b/CHANGELOG.md index 2642efd..aafa2bd 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) +- 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 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]); } }