mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Fix project filter bugs (#26490)
related: #26012 ### Bugs 1. missing project filter on the issue page.1e76a824bc/modules/indexer/issues/dboptions.go (L11-L15)
3. incorrect SQL condition: some issue does not belong to a project but exists on the project_issue table.f5dbac9d36/models/issues/issue_search.go (L233)
### Before:  ### After:  --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
7f8028e5a1
commit
0e74fc4a84
3 changed files with 18 additions and 10 deletions
|
@ -17,6 +17,10 @@ func ToSearchOptions(keyword string, opts *issues_model.IssuesOptions) *SearchOp
|
|||
IsClosed: opts.IsClosed,
|
||||
}
|
||||
|
||||
if opts.ProjectID != 0 {
|
||||
searchOpt.ProjectID = &opts.ProjectID
|
||||
}
|
||||
|
||||
if len(opts.LabelIDs) == 1 && opts.LabelIDs[0] == 0 {
|
||||
searchOpt.NoLabelOnly = true
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue