Skip to content

Commit

Permalink
suggestion issue fix (BookStackApp#4175)
Browse files Browse the repository at this point in the history
  • Loading branch information
esakkiraja100116 committed Apr 26, 2023
1 parent a939983 commit 4980b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Search/SearchRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected function applyTermSearch(EloquentBuilder $entityQuery, SearchOptions $
$subQuery->where('entity_type', '=', $entity->getMorphClass());
$subQuery->where(function (Builder $query) use ($terms) {
foreach ($terms as $inputTerm) {
$inputTerm = ($inputTerm == "\\") ? str_repeat($inputTerm, 2) : $inputTerm;
$inputTerm = ($inputTerm == "\\") ? str_repeat($inputTerm,2) : $inputTerm;
$query->orWhere('term', 'like',"%$inputTerm%");
}
});
Expand Down

0 comments on commit 4980b93

Please sign in to comment.