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
}
if ctx.Query("state") == "all" {
issueOpts.IsClosed = !issueOpts.IsClosed
temp_issues, err := models.Issues(&issueOpts)
opts.IsClosed = !opts.IsClosed
temp_issues, err := models.Issues(&opts)
if err != nil {
ctx.Error(500, "Issues", err)
return

Loading…
Cancel
Save