diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-01-31 20:31:35 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-01 09:31:35 +0800 |
commit | 10644d6dd7574b031118bf01b2bd737017230ffd (patch) | |
tree | 42f4fa34184145defb2237a78306c6da3c1ed3bd /models/issue.go | |
parent | 0a02fb3c4fc241aca54e4ec62e4029e6db3be3f9 (diff) | |
download | gitea-10644d6dd7574b031118bf01b2bd737017230ffd.tar.gz gitea-10644d6dd7574b031118bf01b2bd737017230ffd.zip |
Bug fixes and unit tests for models/issue_label (#802)
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go index 0102656f02..1727da1d50 100644 --- a/models/issue.go +++ b/models/issue.go @@ -345,7 +345,7 @@ func (issue *Issue) getLabels(e Engine) (err error) { } func (issue *Issue) removeLabel(e *xorm.Session, doer *User, label *Label) error { - return deleteIssueLabel(e, doer, issue, label) + return deleteIssueLabel(e, issue, label, doer) } // RemoveLabel removes a label from issue by given ID. @@ -360,7 +360,7 @@ func (issue *Issue) RemoveLabel(doer *User, label *Label) error { return ErrLabelNotExist{} } - if err := DeleteIssueLabel(issue, doer, label); err != nil { + if err := DeleteIssueLabel(issue, label, doer); err != nil { return err } |