diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-25 16:28:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 16:28:03 +0800 |
commit | 8c2381103a209d9d01934f650704e388c428cf42 (patch) | |
tree | edd214c44e1c9c3ef71a9c78d384e1ebba3ee3e2 | |
parent | 2a80e5a81eeec260840a00f09733c203f2572eea (diff) | |
download | gitea-8c2381103a209d9d01934f650704e388c428cf42.tar.gz gitea-8c2381103a209d9d01934f650704e388c428cf42.zip |
bug fixed issues 500 resolved #754 (#756)
-rw-r--r-- | models/issue.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/issue.go b/models/issue.go index d926161381..cb5f8bb068 100644 --- a/models/issue.go +++ b/models/issue.go @@ -928,9 +928,9 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) { switch opts.IsClosed { case util.OptionalBoolTrue: - sess.And("issue.is_closed=true") + sess.And("issue.is_closed=?", true) case util.OptionalBoolFalse: - sess.And("issue.is_closed=false") + sess.And("issue.is_closed=?", false) } if opts.AssigneeID > 0 { @@ -953,9 +953,9 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) { switch opts.IsPull { case util.OptionalBoolTrue: - sess.And("issue.is_pull=true") + sess.And("issue.is_pull=?",true) case util.OptionalBoolFalse: - sess.And("issue.is_pull=false") + sess.And("issue.is_pull=?",false) } sortIssuesSession(sess, opts.SortType) |