aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-11 14:44:43 +0800
committerGitHub <noreply@github.com>2019-10-11 14:44:43 +0800
commit46a12f196b1742a2462259ed3dd9c33c4c2f150b (patch)
treeb8203c7d6d91841ce53a7b875135714b372fa1a5 /routers/repo
parent9ff9f5ad1d8d2680c9c146831458afdbd4e641df (diff)
downloadgitea-46a12f196b1742a2462259ed3dd9c33c4c2f150b.tar.gz
gitea-46a12f196b1742a2462259ed3dd9c33c4c2f150b.zip
Move change issue title from models to issue service package (#8456)
* move change issue title from models to issue service package * make the change less * fix typo
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index e4ef3b1dbb..16a049c7aa 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -1044,7 +1044,7 @@ func UpdateIssueTitle(ctx *context.Context) {
}
oldTitle := issue.Title
- if err := issue.ChangeTitle(ctx.User, title); err != nil {
+ if err := issue_service.ChangeTitle(issue, ctx.User, title); err != nil {
ctx.ServerError("ChangeTitle", err)
return
}