Commit 2b12248c authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(search): filter listing for analysis/collection methods was swapped, swapping back

parent f2284710
......@@ -117,13 +117,13 @@ def core_search_view(request, search_index, objects_on_page):
methods_of_data_collection = request.GET.getlist("methods_of_data_collection")
if len(methods_of_data_collection) == 1 and methods_of_data_collection[0] == "":
methods_of_data_collection = None
methods_of_data_collection_all = AnalysisMethodsTagged.objects.all()
methods_of_data_collection_all = CollectionMethodsTagged.objects.all()
# extract methods_of_data_analysis slugs from GET
methods_of_data_analysis = request.GET.getlist("methods_of_data_analysis")
if len(methods_of_data_analysis) == 1 and methods_of_data_analysis[0] == "":
methods_of_data_analysis = None
methods_of_data_analysis_all = CollectionMethodsTagged.objects.all()
methods_of_data_analysis_all = AnalysisMethodsTagged.objects.all()
if search_index == "dataset_index":
template = "dddatasets/search_results.html"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment