0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-22 03:32:08 +02:00

Fix on issue list clear project issue

This commit is contained in:
Tyrone Yeh 2025-05-09 14:45:45 +08:00
parent 4c72c32f9b
commit ec78073456
No known key found for this signature in database
GPG Key ID: AC8B5AA00375E170

View File

@ -138,6 +138,9 @@ func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_mo
pi := make([]*project_model.ProjectIssue, 0, len(newProjectIDs))
for _, pID := range newProjectIDs {
if pID == 0 {
continue
}
newProject, err := project_model.GetProjectByID(ctx, pID)
if err != nil {
return err