Skip to content
Browse files

BUGFIX Fixed MemberTableField limiting of , wasnt taking children gro…

…ups into account (regression from r99684)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@99706 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent a9f8d55 commit 7e6dfe14f55bfc54351c339895649bf323e77097 @chillu chillu committed Feb 23, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 code/MemberTableField.php
View
5 code/MemberTableField.php
@@ -103,7 +103,10 @@ function __construct($controller, $name, $group = null, $members = null, $hidePa
}
if($this->group) {
- $this->sourceFilter[] = sprintf('"Group_Members"."GroupID" = %d', $this->group->ID);
+ $this->sourceFilter[] = sprintf(
+ '"Group_Members"."GroupID" IN (%s)',
+ implode(',', array_merge($this->group->AllChildren()->column('ID'), array($this->group->ID)))
+ );
}
$this->sourceJoin = " INNER JOIN \"Group_Members\" ON \"MemberID\"=\"Member\".\"ID\"";

0 comments on commit 7e6dfe1

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