BUGFIX MemberTableField use of sourceFilter should be treated as a string, not an array as per the API of TableListField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65174 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-11-03 23:23:20 +00:00
parent bd10591e7c
commit 0c650b20fb

View File

@ -116,7 +116,7 @@ class MemberTableField extends ComplexTableField {
foreach($SNG_member->searchableFields() as $fieldName => $fieldSpec) {
if(strpos($fieldName,'.') === false) $searchFilters[] = "`$fieldName` LIKE '%{$SQL_search}%'";
}
$this->sourceFilter[] = '(' . implode(' OR ', $searchFilters) . ')';
$this->sourceFilter = '(' . implode(' OR ', $searchFilters) . ')';
}
// filter by groups