Skip to content
Permalink
Browse files

Load Issue attributes for API call (#6122) (#6185)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
  • Loading branch information...
jolheiser authored and techknowlogick committed Feb 26, 2019
1 parent 55063f2 commit d602ba564f3b5e00f38232410e7653c993edc500
Showing with 1 addition and 1 deletion.
  1. +1 −1 routers/api/v1/repo/issue.go
@@ -129,7 +129,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)

0 comments on commit d602ba5

Please sign in to comment.
You can’t perform that action at this time.