mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
SearchContext generates SELECT DISTINCT query rather than SELECT, so that duplicate records aren't shown as a result of certain search filters
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62312 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0c7d39e792
commit
14dc406122
@ -143,6 +143,7 @@ class SearchContext extends Object {
|
||||
|
||||
|
||||
$query->connective = $this->connective;
|
||||
$query->distinct = true;
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user