[BUGFIX] Display most searched words again 19/61619/3
authorDevid Messner <devid.messner@raiffeisen.it>
Wed, 4 Sep 2019 14:14:24 +0000 (16:14 +0200)
committerSusanne Moog <look@susi.dev>
Mon, 28 Oct 2019 19:25:15 +0000 (20:25 +0100)
Resolves: #89079
Releases: master, 9.5
Change-Id: Iac9f58064a54fb64ae7fad82d35bbbbaecd2ae95
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61619
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Susanne Moog <look@susi.dev>
typo3/sysext/indexed_search/Classes/Domain/Repository/AdministrationRepository.php

index 525de8a..35e1660 100644 (file)
@@ -412,7 +412,8 @@ class AdministrationRepository
         }
 
         $result = $queryBuilder->execute();
-        $count = (int)$queryBuilder
+        $countQueryBuilder = clone $queryBuilder;
+        $count = (int)$countQueryBuilder
             ->count('uid')
             ->execute()
             ->fetchColumn(0);