mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
ae844c5386
commit
fa04f03b0f
@ -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…
Reference in New Issue
Block a user