1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-11 03:58:20 +00:00

Improve loadprojects for issue list (#25468) (#25493)

This commit is contained in:
Giteabot
2023-06-25 22:06:58 -04:00
committed by GitHub
parent 5703a0d3e3
commit 9bbb4d8d6d
7 changed files with 41 additions and 30 deletions

View File

@@ -378,9 +378,14 @@ func UpdateIssueProject(ctx *context.Context) {
return
}
if err := issues.LoadProjects(ctx); err != nil {
ctx.ServerError("LoadProjects", err)
return
}
projectID := ctx.FormInt64("id")
for _, issue := range issues {
oldProjectID := issue.ProjectID()
oldProjectID := issue.Project.ID
if oldProjectID == projectID {
continue
}