mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	@@ -413,7 +413,7 @@ func ListIssues(ctx *context.APIContext) {
 | 
			
		||||
 | 
			
		||||
	var labelIDs []int64
 | 
			
		||||
	if splitted := strings.Split(ctx.FormString("labels"), ","); len(splitted) > 0 {
 | 
			
		||||
		labelIDs, err = issues_model.GetLabelIDsInRepoByNames(ctx.Repo.Repository.ID, splitted)
 | 
			
		||||
		labelIDs, err = issues_model.GetLabelIDsInRepoByNames(ctx, ctx.Repo.Repository.ID, splitted)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			ctx.Error(http.StatusInternalServerError, "GetLabelIDsInRepoByNames", err)
 | 
			
		||||
			return
 | 
			
		||||
@@ -425,7 +425,7 @@ func ListIssues(ctx *context.APIContext) {
 | 
			
		||||
		for i := range part {
 | 
			
		||||
			// uses names and fall back to ids
 | 
			
		||||
			// non existent milestones are discarded
 | 
			
		||||
			mile, err := issues_model.GetMilestoneByRepoIDANDName(ctx.Repo.Repository.ID, part[i])
 | 
			
		||||
			mile, err := issues_model.GetMilestoneByRepoIDANDName(ctx, ctx.Repo.Repository.ID, part[i])
 | 
			
		||||
			if err == nil {
 | 
			
		||||
				mileIDs = append(mileIDs, mile.ID)
 | 
			
		||||
				continue
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user