Load Issue attributes for API call (#6122)

Signed-off-by: jolheiser <[email protected]>
This commit is contained in:
John Olheiser
2019-02-19 19:07:19 +02:00
committed by Lauris BH
co-authored by Lauris BH
parent 987a521e2f
commit ba0749b7db
+1 -1
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)