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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
release/v1.7
John Olheiser 5 years ago committed by techknowlogick
parent 55063f2524
commit d602ba564f

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

Loading…
Cancel
Save