Browse Source

bug fixed issues 500 resolved #754 (#756)

tags/v1.2.0-rc1
Lunny Xiao GitHub 9 years ago
parent
commit
4683c3bebd
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      models/issue.go

+ 4
- 4
models/issue.go View File

@@ -928,9 +928,9 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {


switch opts.IsClosed { switch opts.IsClosed {
case util.OptionalBoolTrue: case util.OptionalBoolTrue:
sess.And("issue.is_closed=true")
sess.And("issue.is_closed=?", true)
case util.OptionalBoolFalse: case util.OptionalBoolFalse:
sess.And("issue.is_closed=false")
sess.And("issue.is_closed=?", false)
} }


if opts.AssigneeID > 0 { if opts.AssigneeID > 0 {
@@ -953,9 +953,9 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {


switch opts.IsPull { switch opts.IsPull {
case util.OptionalBoolTrue: case util.OptionalBoolTrue:
sess.And("issue.is_pull=true")
sess.And("issue.is_pull=?",true)
case util.OptionalBoolFalse: case util.OptionalBoolFalse:
sess.And("issue.is_pull=false")
sess.And("issue.is_pull=?",false)
} }


sortIssuesSession(sess, opts.SortType) sortIssuesSession(sess, opts.SortType)


Loading…
Cancel
Save