aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-07-19 15:20:28 +0200
committerGitHub <noreply@github.com>2022-07-19 15:20:28 +0200
commitc0f5111fea0b742a60113e1bda81bf39607d6ca8 (patch)
tree78d8414ef40d6c4a2ddedfa7f71d10cee100feba /routers/web
parente519249266cb69065b65f59477afa36f240b28cf (diff)
downloadgitea-c0f5111fea0b742a60113e1bda81bf39607d6ca8.tar.gz
gitea-c0f5111fea0b742a60113e1bda81bf39607d6ca8.zip
Dismiss prior pull reviews if done via web in review dismiss (#20197)
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/repo/pull_review.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go
index 5a9f7a8138..bc64f35472 100644
--- a/routers/web/repo/pull_review.go
+++ b/routers/web/repo/pull_review.go
@@ -242,7 +242,7 @@ func SubmitReview(ctx *context.Context) {
// DismissReview dismissing stale review by repo admin
func DismissReview(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.DismissReviewForm)
- comm, err := pull_service.DismissReview(ctx, form.ReviewID, ctx.Repo.Repository.ID, form.Message, ctx.Doer, true)
+ comm, err := pull_service.DismissReview(ctx, form.ReviewID, ctx.Repo.Repository.ID, form.Message, ctx.Doer, true, true)
if err != nil {
ctx.ServerError("pull_service.DismissReview", err)
return