diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-03-29 22:57:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 16:57:33 +0200 |
commit | 74731c3a5aea71c81e4ca75bde96154f3adf3cfa (patch) | |
tree | 64b01935ab9912de71318eac447721e41b200135 /services/issue/status.go | |
parent | bd97736b9c7a16023bc9abf17be6157284f655b1 (diff) | |
download | gitea-74731c3a5aea71c81e4ca75bde96154f3adf3cfa.tar.gz gitea-74731c3a5aea71c81e4ca75bde96154f3adf3cfa.zip |
Move some issue methods as functions (#19255)
* Move some issue methods as functions
* Fix bug
Diffstat (limited to 'services/issue/status.go')
-rw-r--r-- | services/issue/status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/issue/status.go b/services/issue/status.go index 64fbccd26a..1af4508b09 100644 --- a/services/issue/status.go +++ b/services/issue/status.go @@ -14,7 +14,7 @@ import ( // ChangeStatus changes issue status to open or closed. func ChangeStatus(issue *models.Issue, doer *user_model.User, closed bool) error { - comment, err := issue.ChangeStatus(doer, closed) + comment, err := models.ChangeIssueStatus(issue, doer, closed) if err != nil { if models.IsErrDependenciesLeft(err) && closed { if err := models.FinishIssueStopwatchIfPossible(db.DefaultContext, doer, issue); err != nil { |