1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

demilestone should not include milestone

This commit is contained in:
Lunny Xiao 2024-12-19 16:28:59 -08:00
parent f47fb4fbaf
commit d53bf337dc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

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
}