Commit e6875a62 authored by StryKaizer's avatar StryKaizer Committed by borisson_

Issue #2973265 by StryKaizer, borisson_: Result count can be wrong when multiple views are visible

parent e3d5d3ec
......@@ -400,4 +400,12 @@ class SearchApiDisplay extends FacetSourcePluginBase implements SearchApiFacetSo
return $build;
* {@inheritdoc}
public function getCount() {
$search_id = $this->getDisplay()->getPluginId();
return $this->searchApiQueryHelper->getResults($search_id)->getResultCount();
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