1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 10:48:37 +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

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
}