Skip to content

Commit

Permalink
Include comma into the regex pattern of the preg_replace to prevent i…
Browse files Browse the repository at this point in the history
…t from being deleted
  • Loading branch information
Dragan Balatinac committed Jan 31, 2024
1 parent 43ff174 commit 05b20ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/LocationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ protected function addLimitQueryParts(Constraint $constraint, QueryBuilder $quer

protected function addFulltextSearchQueryParts(Constraint $constraint, QueryBuilder $queryBuilder): QueryBuilder
{
$search = preg_replace('/[^a-zA-Z0-9äöüÄÖÜß]+/', '', $constraint->getSearch());
$search = preg_replace('/[^a-zA-Z0-9äöüÄÖÜß,]+/', '', $constraint->getSearch());
if (
$search
&& isset($this->settings['fulltextSearchFields'])
Expand Down

0 comments on commit 05b20ad

Please sign in to comment.