From 1888bfbb3ebd900d47aac4ea662511b21d5fa691 Mon Sep 17 00:00:00 2001 From: lionelakpagni <61700656+lionelakpagni@users.noreply.github.com> Date: Wed, 29 Jul 2020 15:58:46 +0200 Subject: [PATCH] fix-EZP-31779 See Jira: EZP-31779 Adding language filter parameter. Forgotten here: https://github.com/ezsystems/ezpublish-kernel/commit/494b58835b3992ba8caf9b8300d44b98b1e76983 --- .../Core/Pagination/Pagerfanta/LocationSearchHitAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Publish/Core/Pagination/Pagerfanta/LocationSearchHitAdapter.php b/eZ/Publish/Core/Pagination/Pagerfanta/LocationSearchHitAdapter.php index b343e446d4b..035efc05eb4 100644 --- a/eZ/Publish/Core/Pagination/Pagerfanta/LocationSearchHitAdapter.php +++ b/eZ/Publish/Core/Pagination/Pagerfanta/LocationSearchHitAdapter.php @@ -59,7 +59,7 @@ public function getNbResults() $countQuery = clone $this->query; $countQuery->limit = 0; - return $this->nbResults = $this->searchService->findLocations($countQuery)->totalCount; + return $this->nbResults = $this->searchService->findLocations($countQuery, $this->languageFilter)->totalCount; } /**