Skip to content

Commit

Permalink
Merge pull request #450 from sanderha/fix-depcrecated-filter
Browse files Browse the repository at this point in the history
Fix deprecated filter method in SearchVariant
  • Loading branch information
ScopeyNZ authored Aug 1, 2018
2 parents 252e489 + 140f054 commit fc40484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Search/FluentSearchVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function activateState($state)
public function alterQuery($query, $index)
{
if (FluentState::singleton()->getIsFrontend() && Locale::getCached()->count()) {
$query->filter('_locale', [
$query->addFilter('_locale', [
$this->currentState(),
SearchQuery::$missing
]);
Expand Down

0 comments on commit fc40484

Please sign in to comment.