#3327 fix wrong table name in Join
This commit is contained in:
parent
2d76de2574
commit
8aa0a76702
4 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue