Skip to content

Commit d602ba5

Browse files
jolheisertechknowlogick
authored andcommitted
Load Issue attributes for API call (#6122) (#6185)
Signed-off-by: jolheiser <[email protected]>
1 parent 55063f2 commit d602ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func GetIssue(ctx *context.APIContext) {
129129
// responses:
130130
// "200":
131131
// "$ref": "#/responses/Issue"
132-
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
132+
issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
133133
if err != nil {
134134
if models.IsErrIssueNotExist(err) {
135135
ctx.Status(404)

0 commit comments

Comments
 (0)