aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/comment.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-10-25 20:47:46 +0800
committerGitHub <noreply@github.com>2022-10-25 14:47:46 +0200
commit5e8e3ecbeb71ea924ed9662251af2897285b8220 (patch)
tree7e75b1d76fc496c117ee2e8f6712804822320e64 /models/issues/comment.go
parent29c00eb1ed13fbcd2a5e493d075c2bbd0e2a26f7 (diff)
downloadgitea-5e8e3ecbeb71ea924ed9662251af2897285b8220.tar.gz
gitea-5e8e3ecbeb71ea924ed9662251af2897285b8220.zip
Fix issues count bug (#21557)
fix #19349 , #19505 Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'models/issues/comment.go')
-rw-r--r--models/issues/comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/comment.go b/models/issues/comment.go
index bdc574252c..6877991a93 100644
--- a/models/issues/comment.go
+++ b/models/issues/comment.go
@@ -886,7 +886,7 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment
}
}
case CommentTypeReopen, CommentTypeClose:
- if err = updateIssueClosedNum(ctx, opts.Issue); err != nil {
+ if err = repo_model.UpdateRepoIssueNumbers(ctx, opts.Issue.RepoID, opts.Issue.IsPull, true); err != nil {
return err
}
}