From 9c75acb1134772f9ccadd39bf1ea76fbb046905d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 23 Feb 2010 04:55:09 +0000 Subject: [PATCH] MINOR Fixed MemberTableField regression from r99706 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@99710 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/MemberTableField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/MemberTableField.php b/code/MemberTableField.php index d22af5a2..7a2ffd5f 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -103,9 +103,11 @@ class MemberTableField extends ComplexTableField { } if($this->group) { + $groupIDs = array($this->group->ID); + if($this->group->AllChildren()) $groupIDs = array_merge($groupIDs, $this->group->AllChildren()->column('ID')); $this->sourceFilter[] = sprintf( '"Group_Members"."GroupID" IN (%s)', - implode(',', array_merge($this->group->AllChildren()->column('ID'), array($this->group->ID))) + implode(',', $groupIDs) ); }