From dd6bcd68ccfad7620f0d01dbb1eb831d51c1472d Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 22 Jan 2022 20:36:50 +0100 Subject: [PATCH] Removed not-needed extra line --- module/Core/src/Repository/TagRepository.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/Core/src/Repository/TagRepository.php b/module/Core/src/Repository/TagRepository.php index ab9f1738..dc3b2e65 100644 --- a/module/Core/src/Repository/TagRepository.php +++ b/module/Core/src/Repository/TagRepository.php @@ -41,9 +41,8 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito */ public function findTagsWithInfo(?TagsListFiltering $filtering = null): array { - $orderBy = $filtering?->orderBy(); - $orderField = $orderBy?->orderField(); - $orderDir = $orderBy?->orderDirection(); + $orderField = $filtering?->orderBy()?->orderField(); + $orderDir = $filtering?->orderBy()?->orderDirection(); $orderMainQuery = contains(['shortUrlsCount', 'visitsCount'], $orderField); $conn = $this->getEntityManager()->getConnection();