diff options
Diffstat (limited to 'routers/api/v1/org/label.go')
-rw-r--r-- | routers/api/v1/org/label.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go index a66977ea5a..c70252158e 100644 --- a/routers/api/v1/org/label.go +++ b/routers/api/v1/org/label.go @@ -43,7 +43,7 @@ func ListLabels(ctx *context.APIContext) { // "200": // "$ref": "#/responses/LabelList" - labels, err := models.GetLabelsByOrgID(ctx.Org.Organization.ID, ctx.Form("sort"), utils.GetListOptions(ctx)) + labels, err := models.GetLabelsByOrgID(ctx.Org.Organization.ID, ctx.FormString("sort"), utils.GetListOptions(ctx)) if err != nil { ctx.Error(http.StatusInternalServerError, "GetLabelsByOrgID", err) return |