mirror of
https://github.com/go-gitea/gitea
synced 2025-11-01 20:08:25 +00:00
When creating an issue, inserting issue, assign users and set project should be in the same transaction. Backport #29490
This commit is contained in:
@@ -396,7 +396,7 @@ func UpdateIssueProject(ctx *context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {
|
||||
if err := issues_model.ChangeProjectAssign(ctx, issue, ctx.Doer, projectID); err != nil {
|
||||
ctx.ServerError("ChangeProjectAssign", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user