diff options
author | Unknwon <u@gogs.io> | 2016-07-26 18:40:20 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-26 18:40:20 +0800 |
commit | 8aa0a767027222e0b1a4c86ccd587ab9d479ebfa (patch) | |
tree | 9a1a54838f61ed4f3236ff9345cab9189f6156dc /models | |
parent | 2d76de2574d2e3734ed8e566845042e6fb281a6e (diff) |
#3327 fix wrong table name in Join
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index 3fd97fbe..9d0f5818 100644 --- a/models/issue.go +++ b/models/issue.go @@ -567,7 +567,7 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) { if len(opts.Labels) > 0 && opts.Labels != "0" { labelIDs := base.StringsToInt64s(strings.Split(opts.Labels, ",")) if len(labelIDs) > 0 { - sess.Join("INNER", "issue_label", "issue.id = issue_label.issue_id").In("issue.label_id", labelIDs) + sess.Join("INNER", "issue_label", "issue.id = issue_label.issue_id").In("issue_label.label_id", labelIDs) } } |