Browse Source

Load Issue attributes for API call (#6122)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
for-closed-social
John Olheiser 5 years ago
committed by Lauris BH
parent
commit
ba0749b7db
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/api/v1/repo/issue.go

+ 1
- 1
routers/api/v1/repo/issue.go View File

@ -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)

Loading…
Cancel
Save