mirror of
https://gitee.com/gitea/gitea
synced 2025-12-27 18:56:35 +08:00
Rename context.Query to context.Form (#16562)
This commit is contained in:
@@ -60,8 +60,8 @@ func ListMilestones(ctx *context.APIContext) {
|
||||
milestones, err := models.GetMilestones(models.GetMilestonesOption{
|
||||
ListOptions: utils.GetListOptions(ctx),
|
||||
RepoID: ctx.Repo.Repository.ID,
|
||||
State: api.StateType(ctx.Query("state")),
|
||||
Name: ctx.Query("name"),
|
||||
State: api.StateType(ctx.Form("state")),
|
||||
Name: ctx.Form("name"),
|
||||
})
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "GetMilestones", err)
|
||||
|
||||
Reference in New Issue
Block a user