BUGFIX Setting ID explicitly in MemberTableField-> to ensure getCsvQuery() correctly filters (the custom group filter was only implemented in sourceItems() before)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@99684 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-23 03:30:46 +00:00
parent ae844c5386
commit fa04f03b0f

View File

@ -101,6 +101,10 @@ class MemberTableField extends ComplexTableField {
}
$this->sourceFilter[] = '(' . implode(' OR ', $searchFilters) . ')';
}
if($this->group) {
$this->sourceFilter[] = sprintf('"Group_Members"."GroupID" = %d', $this->group->ID);
}
$this->sourceJoin = " INNER JOIN \"Group_Members\" ON \"MemberID\"=\"Member\".\"ID\"";
$this->setFieldListCsv($csvFieldList);