Skip to content

Commit

Permalink
Fix distinct in category filter generation
Browse files Browse the repository at this point in the history
Substitute `distinct()` with `groupBy()` since distinct is not supported
in TYPO3 v10.
  • Loading branch information
okmiim committed May 31, 2022
1 parent 7d5f75a commit b422e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/EventListener/CategoryFilterEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function getCategories(string $tableName, string $fieldName): array
$languageUid = GeneralUtility::makeInstance(Context::class)->getAspect('language')->getId();

$queryBuilder->select('sys_category.*')
->distinct()
->groupBy('sys_category.uid')
->from('sys_category')
->join(
'sys_category',
Expand Down

0 comments on commit b422e47

Please sign in to comment.