mirror of
https://github.com/go-gitea/gitea
synced 2025-11-03 12:58:29 +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:
@@ -1481,7 +1481,7 @@ func CompareAndPullRequestPost(ctx *context.Context) {
|
||||
ctx.Error(http.StatusBadRequest, "user hasn't the permission to write to projects")
|
||||
return
|
||||
}
|
||||
if err := issues_model.ChangeProjectAssign(pullIssue, ctx.Doer, projectID); err != nil {
|
||||
if err := issues_model.ChangeProjectAssign(ctx, pullIssue, ctx.Doer, projectID); err != nil {
|
||||
ctx.ServerError("ChangeProjectAssign", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user