Sergiy
Sergiy

Reputation: 1

"Value Filter" - possible issue when QueryString parameter doesn't exist

We have a query with 2 filters: by Tags (Relationship Filter) and by "Name" (screenshot is below):

When both filters are selected or filter by "Name" is selected, then all works fine. However when filter by "Name" doesn't exist in QueryString, then "Value Filter" returns all items, instead of 0 (screenshot).

I assume that when parameter from QueryString doesn't exist it should return 0 records, isn't it?

Here is how filter looks inside

It looks like "Value Filter" first replaces [Parameters:FilterName] with empty string and then compares with wildcards pattern like '%%' (contains), so it returns all records.

Any ideas is it a bug or incorrect usage of the tool?

Thanks in advance!

Tried "Value Filter" without QueryString Parameter for this filter and assumed that it should return 0 records, because QueryString Parameter doesn't exist.

Upvotes: 0

Views: 31

Answers (0)

Related Questions