Skip to content

Commit

Permalink
[Backport 12.4] [BUGFIX] Invoke addFlashMessage() correctly when dele…
Browse files Browse the repository at this point in the history
…ting a post (#84)

Releases: main, 12.4

---------

Co-authored-by: Chris Müller <[email protected]>
  • Loading branch information
github-actions[bot] and brotkrueml authored Apr 1, 2024
1 parent c10e7bb commit f4d17e5
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 @@ -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

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 f4d17e5

Please sign in to comment.