Skip to content

Commit

Permalink
filters for only search components that are enabled, re #10805
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Apr 19, 2024
1 parent f5b8466 commit ecac100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/search/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def post_search_hook(self, search_results_object, results, permitted_nodegroups)
class SearchFilterFactory(object):
def __init__(self, request=None):
self.request = request
self.search_filters = {search_filter.componentname: search_filter for search_filter in models.SearchComponent.objects.all()}
self.search_filters = {search_filter.componentname: search_filter for search_filter in models.SearchComponent.objects.filter(enabled=True)}
self.search_filters_instances = {}

def get_filter(self, componentname):
Expand Down

0 comments on commit ecac100

Please sign in to comment.