From 24c64d74799d687eb1cdf5e84fd8f40ea2e4a571 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 6 Apr 2022 12:21:19 +1000 Subject: [PATCH] Bug fix for "inverted" logic when hiding inactive parts from search results --- InvenTree/templates/js/translated/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/translated/search.js b/InvenTree/templates/js/translated/search.js index c0c1a07db7..4db310a062 100644 --- a/InvenTree/templates/js/translated/search.js +++ b/InvenTree/templates/js/translated/search.js @@ -89,7 +89,8 @@ function updateSearch() { var params = {}; if (user_settings.SEARCH_HIDE_INACTIVE_PARTS) { - params.active = false; + // Return *only* active parts + params.active = true; } // Search for matching parts