Skip to content

Commit

Permalink
Don't prevent sort on full text searches
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell authored Aug 17, 2020
1 parent b2bf92a commit df6b2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Edge/Doctrine/Search/DoctrineSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getResults($offset, $itemCountPerPage)
}
}

if (null !== $filter->getSortField() && !$hasFulltext) {
if (null !== $filter->getSortField()) {
$mappedSortField = $this->getMappedField($filter->getSortField());
$this->addJoin($mappedSortField['field']);
$qb->orderBy($mappedSortField['field'], $filter->getSortOrder());
Expand Down

0 comments on commit df6b2e4

Please sign in to comment.