Commit 5af27133 authored by stBorchert's avatar stBorchert Committed by borisson_

Issue #2960088 by stBorchert: Process facets by source

parent 3560dfb4
......@@ -170,9 +170,9 @@ class DefaultFacetManager {
}
}
$unprocessedFacets = array_filter($this->facets, function ($item) {
$unprocessedFacets = array_filter($this->facets, function ($item) use ($facetsource_id) {
/* @var \Drupal\facets\FacetInterface $item */
return !isset($this->processedFacets[$item->id()]);
return !isset($this->processedFacets[$facetsource_id][$item->id()]);
});
// All facets were already processed on a previous run, so no need to do so
......@@ -192,7 +192,7 @@ class DefaultFacetManager {
}
$post_query_processor->postQuery($facet);
}
$this->processedFacets[$facet->id()] = $facet;
$this->processedFacets[$facetsource_id][$facet->id()] = $facet;
}
}
......
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