mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-21 01:14:31 +08:00
e61e9a36b7
fix a bug from #30490 `prs.GetIssueIDs()` will also be used in other places, e.g. `InvalidateCodeComments` so we should not add `if pr.Issue == nil` in it, or if `pr.Issue` is already loaded, you will not get the issueID in the results list and this is not an expected result. So this will caused a bug: before calling `InvalidateCodeComments`, all `pr.Issues` in `prs` are loaded, so `issueIDs` in this function will always be `[]`. ![image](https://github.com/go-gitea/gitea/assets/18380374/ef94d9d2-0bf9-455a-abd6-4d5e6497db7c) |
||
---|---|---|
.. | ||
assignees_test.go | ||
assignees.go | ||
comment_code.go | ||
comment_list.go | ||
comment_test.go | ||
comment.go | ||
content_history_test.go | ||
content_history.go | ||
dependency_test.go | ||
dependency.go | ||
issue_index.go | ||
issue_label_test.go | ||
issue_label.go | ||
issue_list_test.go | ||
issue_list.go | ||
issue_lock.go | ||
issue_project.go | ||
issue_search.go | ||
issue_stats.go | ||
issue_test.go | ||
issue_update.go | ||
issue_user_test.go | ||
issue_user.go | ||
issue_watch_test.go | ||
issue_watch.go | ||
issue_xref_test.go | ||
issue_xref.go | ||
issue.go | ||
label_test.go | ||
label.go | ||
main_test.go | ||
milestone_list.go | ||
milestone_test.go | ||
milestone.go | ||
pull_list.go | ||
pull_test.go | ||
pull.go | ||
reaction.go | ||
review_list.go | ||
review_test.go | ||
review.go | ||
stopwatch_test.go | ||
stopwatch.go | ||
tracked_time_test.go | ||
tracked_time.go |