diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-02-19 11:07:19 -0600 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-19 19:07:19 +0200 |
commit | ba0749b7db22fb138729210e16db937faebfd2d3 (patch) | |
tree | d8c7f718e5149f99868c3b6daaff3babefe1866a /routers | |
parent | 987a521e2f361f013344b5fbb9b013ea7700f53f (diff) | |
download | gitea-ba0749b7db22fb138729210e16db937faebfd2d3.tar.gz gitea-ba0749b7db22fb138729210e16db937faebfd2d3.zip |
Load Issue attributes for API call (#6122)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index b13af33548..a129447c09 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -142,7 +142,7 @@ func GetIssue(ctx *context.APIContext) { // responses: // "200": // "$ref": "#/responses/Issue" - issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index")) + issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index")) if err != nil { if models.IsErrIssueNotExist(err) { ctx.Status(404) |