mirror of
https://gitee.com/gitea/gitea
synced 2025-12-16 04:56:37 +08:00
Rename context.Query to context.Form (#16562)
This commit is contained in:
@@ -43,7 +43,7 @@ func ListLabels(ctx *context.APIContext) {
|
||||
// "200":
|
||||
// "$ref": "#/responses/LabelList"
|
||||
|
||||
labels, err := models.GetLabelsByOrgID(ctx.Org.Organization.ID, ctx.Query("sort"), utils.GetListOptions(ctx))
|
||||
labels, err := models.GetLabelsByOrgID(ctx.Org.Organization.ID, ctx.Form("sort"), utils.GetListOptions(ctx))
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "GetLabelsByOrgID", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user