aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/org
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-08-09 09:29:02 +0800
committerGitHub <noreply@github.com>2024-08-09 01:29:02 +0000
commit791d7fc76aa41370860126e861cf14d98efe710e (patch)
tree066bde9247eaa6b91878c818901c378b65f5ecb1 /routers/web/org
parentaa1055fe16e2a11b4ab9503854be96e776231d93 (diff)
downloadgitea-791d7fc76aa41370860126e861cf14d98efe710e.tar.gz
gitea-791d7fc76aa41370860126e861cf14d98efe710e.zip
Add issue comment when moving issues from one column to another of the project (#29311)
Fix #27278 Replace #27816 This PR adds a meta-comment for an issue when dragging an issue from one column to another of a project. <img width="600" alt="image" src="https://github.com/go-gitea/gitea/assets/81045/5fc1d954-430e-4db0-aaee-a00006fa91f5"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: yp05327 <576951401@qq.com>
Diffstat (limited to 'routers/web/org')
-rw-r--r--routers/web/org/projects.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go
index eea539f6d9..66760d31db 100644
--- a/routers/web/org/projects.go
+++ b/routers/web/org/projects.go
@@ -23,6 +23,7 @@ import (
shared_user "code.gitea.io/gitea/routers/web/shared/user"
"code.gitea.io/gitea/services/context"
"code.gitea.io/gitea/services/forms"
+ project_service "code.gitea.io/gitea/services/projects"
)
const (
@@ -601,7 +602,7 @@ func MoveIssues(ctx *context.Context) {
}
}
- if err = project_model.MoveIssuesOnProjectColumn(ctx, column, sortedIssueIDs); err != nil {
+ if err = project_service.MoveIssuesOnProjectColumn(ctx, ctx.Doer, column, sortedIssueIDs); err != nil {
ctx.ServerError("MoveIssuesOnProjectColumn", err)
return
}