Browse Source

Update issue.go

pull/3742/head
Kim "BKC" Carlbäcker 8 years ago committed by GitHub
parent
commit
f52a3a5665
  1. 4
      routers/api/v1/repo/issue.go

4
routers/api/v1/repo/issue.go

@ -22,8 +22,8 @@ func listIssues(ctx *context.APIContext, opts *models.IssuesOptions) {
return return
} }
if ctx.Query("state") == "all" { if ctx.Query("state") == "all" {
issueOpts.IsClosed = !issueOpts.IsClosed opts.IsClosed = !opts.IsClosed
temp_issues, err := models.Issues(&issueOpts) temp_issues, err := models.Issues(&opts)
if err != nil { if err != nil {
ctx.Error(500, "Issues", err) ctx.Error(500, "Issues", err)
return return

Loading…
Cancel
Save