1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-10 04:27:22 +00:00

demilestone should not include milestone (#32923)

Fix #32887
This commit is contained in:
Lunny Xiao
2024-12-24 21:52:46 -08:00
committed by GitHub
parent 1a7591d7f9
commit f44712f22b
2 changed files with 12 additions and 0 deletions

View File

@ -59,6 +59,10 @@ func changeMilestoneAssign(ctx context.Context, doer *user_model.User, issue *is
}
}
if issue.MilestoneID == 0 {
issue.Milestone = nil
}
return nil
}