summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-01-31 20:31:35 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-01 09:31:35 +0800
commit10644d6dd7574b031118bf01b2bd737017230ffd (patch)
tree42f4fa34184145defb2237a78306c6da3c1ed3bd /models/issue.go
parent0a02fb3c4fc241aca54e4ec62e4029e6db3be3f9 (diff)
downloadgitea-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.go4
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
}