mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Explain SearchOptions and fix ToSearchOptions (#26542)
Follow #26012 #26490. A detailed description has been added to the comment.
This commit is contained in:
		@@ -14,6 +14,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_model.IssuesOptions, error) {
 | 
			
		||||
	// See the comment of issues_model.SearchOptions for the reason why we need to convert
 | 
			
		||||
	convertID := func(id *int64) int64 {
 | 
			
		||||
		if id == nil {
 | 
			
		||||
			return 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user