diff options
author | Unknwon <u@gogs.io> | 2015-08-29 23:49:17 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-29 23:49:17 +0800 |
commit | 8d73832bdfeecb3889cf5a1f2b4e41b9d4d37f62 (patch) | |
tree | 30ba996f6a6c06886a3bb522f2a575d545c71fff /models | |
parent | a3683ca5d6e64b74eb4b44d4cab2e7469f343529 (diff) | |
download | gitea-8d73832bdfeecb3889cf5a1f2b4e41b9d4d37f62.tar.gz gitea-8d73832bdfeecb3889cf5a1f2b4e41b9d4d37f62.zip |
fix sql
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 325c2c938c..5ae7f32bcd 100644 --- a/models/issue.go +++ b/models/issue.go @@ -410,7 +410,7 @@ func Issues(uid, assigneeID, repoID, posterID, milestoneID int64, repoIDs []int6 if repoID > 0 { sess.Where("issue.repo_id=?", repoID).And("issue.is_closed=?", isClosed) } else if repoIDs != nil { - sess.Where("issue.repo_id IN (?)", strings.Join(base.Int64sToStrings(repoIDs), ",")).And("issue.is_closed=?", isClosed) + sess.Where("issue.repo_id IN ("+strings.Join(base.Int64sToStrings(repoIDs), ",")+")").And("issue.is_closed=?", isClosed) } else { sess.Where("issue.is_closed=?", isClosed) } |