Skip to content

Commit 95fe7e3

Browse files
committed
Fix Search With Name Duplication
1 parent 3bd6b61 commit 95fe7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Features/Search/WithSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function applySearch(): Builder
5050
if ($column->hasSearchCallback()) {
5151
($column->getSearchCallback())($query, $search);
5252
} else {
53-
$query->{$index === 0 ? 'where' : 'orWhere'}($column->getColumn(), 'like', $column->isWildcardSearchable() ? '%'.$search.'%' : $search);
53+
$query->{$index === 0 ? 'where' : 'orWhere'}($column->getColumnForQuery($this->getBuilder()->getModel()->getTable()), 'like', $column->isWildcardSearchable() ? '%'.$search.'%' : $search);
5454
}
5555
}
5656
}));

0 commit comments

Comments
 (0)