Skip to content

Commit

Permalink
[BUGFIX] Return interface on comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 23, 2023
1 parent 4aee32b commit 2749ab4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function commentsAction(string $filter = null, int $blogSetup = null): Re
return $this->htmlResponse($moduleTemplate->renderContent());
}

public function updateCommentStatusAction(string $status, string $filter = null, int $blogSetup = null, array $comments = [], int $comment = null): void
public function updateCommentStatusAction(string $status, string $filter = null, int $blogSetup = null, array $comments = [], int $comment = null): ResponseInterface
{
if ($comment !== null) {
$comments['__identity'][] = $comment;
Expand Down Expand Up @@ -155,7 +155,8 @@ public function updateCommentStatusAction(string $status, string $filter = null,
}
}
}
$this->redirect('comments', null, null, ['filter' => $filter, 'blogSetup' => $blogSetup]);

return new RedirectResponse($this->uriBuilder->reset()->uriFor('comments', ['filter' => $filter, 'blogSetup' => $blogSetup]));
}

public function createBlogAction(array $data = null): ResponseInterface
Expand Down

0 comments on commit 2749ab4

Please sign in to comment.