Repository navigation
Fix global search "view all results" omitting notes matches - #12832
Merged
SchrodingersGat merged 1 commit intoSep 12, 2026
Merged
Conversation
…e#12482) The search drawer searches notes when the notes-search setting is enabled, but the "view all results" link only carried the plain search term - so results that matched only via their notes were missing from the full results table. Pass the search_notes flag through to the overview table URL when notes search is active; the table forwards URL query parameters to the API, where InvenTreeSearchFilter already supports search_notes.
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
SchrodingersGat
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
When global search has the "notes search" setting enabled, results whose notes match the search term appear correctly in the search drawer - but clicking "view all results" for that model opens the results table without those matches (reported in #12482, with reproduction steps).
Root cause
The search drawer calls the API search endpoint with
search_notes: true, but the "view all results" link only carries the plainsearchterm to the overview table:The overview table's list endpoint only searches notes when it receives the
search_notesquery parameter (supported byInvenTreeSearchFilter), so note-only matches were dropped from the table view.Solution
Pass the drawer's active notes-search state through to the overview URL:
QueryResultGroupreceives asearchNotesprop from the drawerviewResults()appends&search_notes=truewhen notes search is activesearch_notessupport does the restTesting
yarn run build(fulltsctypecheck + vite build) passesCloses #12482