Skip to content

Commit

Permalink
[BUGFIX] Invoke addFlashMessage() correctly when deleting a blog
Browse files Browse the repository at this point in the history
Releases: main, 12.4
  • Loading branch information
brotkrueml committed Apr 1, 2024
1 parent 0626209 commit a5e2455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit a5e2455

Please sign in to comment.