Skip to content

Commit

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

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

0 comments on commit 0626209

Please sign in to comment.