mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Rename context.Query to context.Form (#16562)
This commit is contained in:
		@@ -86,10 +86,10 @@ func ListPullRequests(ctx *context.APIContext) {
 | 
			
		||||
 | 
			
		||||
	prs, maxResults, err := models.PullRequests(ctx.Repo.Repository.ID, &models.PullRequestsOptions{
 | 
			
		||||
		ListOptions: listOptions,
 | 
			
		||||
		State:       ctx.QueryTrim("state"),
 | 
			
		||||
		SortType:    ctx.QueryTrim("sort"),
 | 
			
		||||
		Labels:      ctx.QueryStrings("labels"),
 | 
			
		||||
		MilestoneID: ctx.QueryInt64("milestone"),
 | 
			
		||||
		State:       ctx.FormTrim("state"),
 | 
			
		||||
		SortType:    ctx.FormTrim("sort"),
 | 
			
		||||
		Labels:      ctx.FormStrings("labels"),
 | 
			
		||||
		MilestoneID: ctx.FormInt64("milestone"),
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user