mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user