summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichaellenahan2018-11-24 12:20:58 (GMT)
committerJoris Vercammen2018-11-24 12:20:58 (GMT)
commit92d8ecc94d7ebcc0a7668d7b0be940c56e81f08d (patch)
tree79b6741870976162cf54bce596098103d7c6c227
parentc8414fd5376590ed13bf05f94424aca4d88c7d6f (diff)
Issue #3012047 by michaellenahan: Undetected facets should not cause a PHP Exception8.x-1.2
-rw-r--r--modules/facets_range_widget/src/Plugin/facets/processor/RangeSliderProcessor.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/facets_range_widget/src/Plugin/facets/processor/RangeSliderProcessor.php b/modules/facets_range_widget/src/Plugin/facets/processor/RangeSliderProcessor.php
index 129dd12..636900e 100644
--- a/modules/facets_range_widget/src/Plugin/facets/processor/RangeSliderProcessor.php
+++ b/modules/facets_range_widget/src/Plugin/facets/processor/RangeSliderProcessor.php
@@ -48,6 +48,10 @@ class RangeSliderProcessor extends SliderProcessor implements PreQueryProcessorI
$url_processor = $url_processor_handler->getProcessor();
$active_filters = $url_processor->getActiveFilters();
+ if (isset($active_filters[''])) {
+ unset($active_filters['']);
+ }
+
/** @var \Drupal\facets\Result\ResultInterface[] $results */
foreach ($results as &$result) {
$new_active_filters = $active_filters;