aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-08-10 10:39:21 +0800
committerGitHub <noreply@github.com>2023-08-10 02:39:21 +0000
commit36eb3c433ae384f21beec63eb648141fb9dba676 (patch)
tree4f8ad47b15981b1f802de9695ec402f8b756cb62 /routers/web
parenta85a8628042c788ce2b372a29ca1cefab544f1ed (diff)
downloadgitea-36eb3c433ae384f21beec63eb648141fb9dba676.tar.gz
gitea-36eb3c433ae384f21beec63eb648141fb9dba676.zip
Add transaction when creating pull request created dirty data (#26259)
Fix #26129 Replace #26258 This PR will introduce a transaction on creating pull request so that if some step failed, it will rollback totally. And there will be no dirty pull request exist. --------- Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index 7bddabd10a..488c97b0eb 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -2290,7 +2290,7 @@ func UpdateIssueAssignee(ctx *context.Context) {
return
}
- _, _, err = issue_service.ToggleAssignee(ctx, issue, ctx.Doer, assigneeID)
+ _, _, err = issue_service.ToggleAssigneeWithNotify(ctx, issue, ctx.Doer, assigneeID)
if err != nil {
ctx.ServerError("ToggleAssignee", err)
return