Skip to content

Commit 520d29c

Browse files
committed
Populate indexer search options correctly when filtering for any assignee
1 parent 8f6f630 commit 520d29c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/indexer/issues/dboptions.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ func ToSearchOptions(keyword string, opts *issues_model.IssuesOptions) *SearchOp
4747

4848
if opts.AssigneeID.Value() == db.NoConditionID {
4949
searchOpt.AssigneeID = optional.Some[int64](0) // FIXME: this is inconsistent from other places, 0 means "no assignee"
50+
} else if opts.AssigneeID.Value() == db.AnyConditionID {
51+
searchOpt.AnyAssigneeOnly = true
5052
} else if opts.AssigneeID.Value() != 0 {
5153
searchOpt.AssigneeID = opts.AssigneeID
5254
}

0 commit comments

Comments
 (0)