aboutsummaryrefslogtreecommitdiff
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-16 20:25:28 -0400
committerUnknwon <u@gogs.io>2017-03-16 20:25:28 -0400
commit07a9cbe0a9ab8b25af079b8bd4d2c43f64cc0c03 (patch)
tree6bddbef597417ce0a8e8ac23a70283fdafa4bc68 /models/issue.go
parent7c802f6d83b50e5a647fbf667c25480d67f4791f (diff)
setting: able to config dashboard news feed paging number (#4247)
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 1eb26119..32e20b65 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -895,7 +895,7 @@ func buildIssuesQuery(opts *IssuesOptions) *xorm.Session {
if len(opts.RepoIDs) == 0 {
return nil
}
- sess.In("issue.repo_id", base.Int64sToStrings(opts.RepoIDs)).And("issue.is_closed=?", opts.IsClosed)
+ sess.In("issue.repo_id", opts.RepoIDs).And("issue.is_closed=?", opts.IsClosed)
} else {
sess.Where("issue.is_closed=?", opts.IsClosed)
}
@@ -930,7 +930,7 @@ func buildIssuesQuery(opts *IssuesOptions) *xorm.Session {
}
if len(opts.Labels) > 0 && opts.Labels != "0" {
- labelIDs := base.StringsToInt64s(strings.Split(opts.Labels, ","))
+ labelIDs := strings.Split(opts.Labels, ",")
if len(labelIDs) > 0 {
sess.Join("INNER", "issue_label", "issue.id = issue_label.issue_id").In("issue_label.label_id", labelIDs)
}