diff options
Diffstat (limited to 'routers/web/org/org_labels.go')
-rw-r--r-- | routers/web/org/org_labels.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go index 08457d4f8e..97a5437c61 100644 --- a/routers/web/org/org_labels.go +++ b/routers/web/org/org_labels.go @@ -15,7 +15,7 @@ import ( // RetrieveLabels find all the labels of an organization func RetrieveLabels(ctx *context.Context) { - labels, err := models.GetLabelsByOrgID(ctx.Org.Organization.ID, ctx.Form("sort"), models.ListOptions{}) + labels, err := models.GetLabelsByOrgID(ctx.Org.Organization.ID, ctx.FormString("sort"), models.ListOptions{}) if err != nil { ctx.ServerError("RetrieveLabels.GetLabels", err) return @@ -25,7 +25,7 @@ func RetrieveLabels(ctx *context.Context) { } ctx.Data["Labels"] = labels ctx.Data["NumLabels"] = len(labels) - ctx.Data["SortType"] = ctx.Form("sort") + ctx.Data["SortType"] = ctx.FormString("sort") } // NewLabel create new label for organization |