1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-17 15:08:27 +00:00

Fix issues count bug (#21600)

backport #21557
This commit is contained in:
Lunny Xiao
2022-10-26 20:42:45 +08:00
committed by GitHub
parent e504410708
commit 291787a5ef
4 changed files with 33 additions and 55 deletions

View File

@@ -881,7 +881,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
}
}