mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX Setting ID explicitly in MemberTableField-> to ensure getCsvQuery() correctly filters (the custom group filter was only implemented in sourceItems() before) (from r99684)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99711 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7ffbefb6b1
commit
9a5b429ad1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user