Skip to content
Browse files

BUGFIX Setting ID explicitly in MemberTableField-> to ensure getCsvQu…

…ery() 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
  • Loading branch information...
1 parent ae844c5 commit fa04f03b0f5cc138f619f0adc5627618e4c80d7c @chillu chillu committed Feb 23, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 code/MemberTableField.php
View
4 code/MemberTableField.php
@@ -101,6 +101,10 @@ function __construct($controller, $name, $group = null, $members = null, $hidePa
}
$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);

0 comments on commit fa04f03

Please sign in to comment.
Something went wrong with that request. Please try again.