From 0a5fe2aa41bfe2a3b42883b508bc34998b693f54 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Thu, 23 May 2024 18:02:42 +0300 Subject: [PATCH] pkp/pkp-lib#8700 Dropped safeCount() workaround in favor of getCountForPagination() --- classes/services/queryBuilders/GalleyQueryBuilder.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/services/queryBuilders/GalleyQueryBuilder.inc.php b/classes/services/queryBuilders/GalleyQueryBuilder.inc.php index f9e7c37ffe..0bf586a8d7 100644 --- a/classes/services/queryBuilders/GalleyQueryBuilder.inc.php +++ b/classes/services/queryBuilders/GalleyQueryBuilder.inc.php @@ -41,11 +41,11 @@ public function filterByPublicationIds($publicationIds) { public function getCount() { return $this ->getQuery() - ->safeCount(); + ->getCountForPagination(); } /** - * @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getCount() + * @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getIds() */ public function getIds() { return $this @@ -56,7 +56,7 @@ public function getIds() { } /** - * @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getCount() + * @copydoc PKP\Services\QueryBuilders\Interfaces\EntityQueryBuilderInterface::getQuery() */ public function getQuery() { $this->columns = ['*'];