mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Modify milestone search keywords to be case insensitive (#20266)
Milestone search keywords are now sensitive, this modification is changed to insensitive
This commit is contained in:
		@@ -361,7 +361,7 @@ func (opts GetMilestonesOption) toCond() builder.Cond {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if len(opts.Name) != 0 {
 | 
						if len(opts.Name) != 0 {
 | 
				
			||||||
		cond = cond.And(builder.Like{"name", opts.Name})
 | 
							cond = cond.And(builder.Like{"UPPER(name)", strings.ToUpper(opts.Name)})
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return cond
 | 
						return cond
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user