summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-08-11 13:27:23 +0800
committerGitHub <noreply@github.com>2023-08-11 05:27:23 +0000
commit368e9e0f1bf1094aad881336c698f540c047d9ac (patch)
treeb65c37ad8c941cbf1ae70d57af81e49c5d557653 /routers
parentd6cf261be860e8022ccbad5585fc3508e840d409 (diff)
downloadgitea-368e9e0f1bf1094aad881336c698f540c047d9ac.tar.gz
gitea-368e9e0f1bf1094aad881336c698f540c047d9ac.zip
Add transaction when creating pull request created dirty data (#26259) (#26437)
Backport #26259 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')
-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 2ad7af050b..1904ae3ba9 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -2226,7 +2226,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