From 6f9a7cb6073700176026bf167368dff68081b64e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 14 Sep 2024 14:23:16 +0200 Subject: [PATCH] Search: disable filters with a search field, see #2141 --- src/Logic/Search/FilterSearch.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Logic/Search/FilterSearch.ts b/src/Logic/Search/FilterSearch.ts index d8424fc68..37a0c05b3 100644 --- a/src/Logic/Search/FilterSearch.ts +++ b/src/Logic/Search/FilterSearch.ts @@ -47,6 +47,10 @@ export default class FilterSearch { if (!option.osmTags) { continue } + if(option.fields.length > 0){ + // Filters with a search field are not supported as of now, see #2141 + continue + } let terms = ([option.question.txt, ...(option.searchTerms?.[Locale.language.data] ?? option.searchTerms?.["en"] ?? [])] .flatMap(term => [term, ...(term?.split(" ") ?? [])]))