We have a content type "petition" with a boolean field "is open" which means that people can sign the petition. On a landingpage with a views reference field we want to list all petitions which were successfully finished so they have the value "0" set for the field is "open". But when I edit the views reference field with an exposed filter for a boolean field to use the "false" value I get a completely unfiltered list of petitions.
I found that the issue lies in ViewsReferenceExposedFilters->alterView() in line 209:
if (!empty($value) && isset($filters_by_id[$index])) {
$filters[$index] = $value;
}
For a boolean field with value false / 0 the check !empty($value)
leads to "false" so that the filter is not added to the $filters array. I'll try to offer a patch...
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.