Skip to content

Commit

Permalink
Merge pull request #815 from MLindenhofer/ML_CopyFixFromMaster
Browse files Browse the repository at this point in the history
copy Bugfix for GridFieldAddExistingSearchButton from master to version 6.0
  • Loading branch information
tractorcow authored Nov 14, 2023
2 parents f18bc71 + 9ab08d1 commit 3ac5a90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Extension/FluentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
// Apply substitutions
$localisedPredicate = str_replace($conditionSearch, $conditionReplace, $predicate);

if (empty($localisedPredicate)) {
continue;
}

$where[$index] = [
$localisedPredicate => $parameters
];
Expand Down

0 comments on commit 3ac5a90

Please sign in to comment.