2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

Merge pull request #2809 from SchrodingersGat/fix-inactive-search

Bug fix for "inverted" logic in search results
This commit is contained in:
Oliver 2022-04-06 12:46:18 +10:00 committed by GitHub
commit c31bbe5c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,8 @@ function updateSearch() {
var params = {}; var params = {};
if (user_settings.SEARCH_HIDE_INACTIVE_PARTS) { if (user_settings.SEARCH_HIDE_INACTIVE_PARTS) {
params.active = false; // Return *only* active parts
params.active = true;
} }
// Search for matching parts // Search for matching parts