From f52a3a5665508bcc4f4257e831c7c093d5cac7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Mon, 20 Mar 2017 01:59:36 +0100 Subject: [PATCH] Update issue.go --- routers/api/v1/repo/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index bb8f7d491..a0f254f38 100644 --- a/routers/api/v1/repo/issue.go +++ b/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