mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixed MemberTableField regression from r99706 (from r99710)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99714 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f088acf5e3
commit
a0c69ad63f
@ -103,9 +103,11 @@ class MemberTableField extends ComplexTableField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->group) {
|
if($this->group) {
|
||||||
|
$groupIDs = array($this->group->ID);
|
||||||
|
if($this->group->AllChildren()) $groupIDs = array_merge($groupIDs, $this->group->AllChildren()->column('ID'));
|
||||||
$this->sourceFilter[] = sprintf(
|
$this->sourceFilter[] = sprintf(
|
||||||
'"Group_Members"."GroupID" IN (%s)',
|
'"Group_Members"."GroupID" IN (%s)',
|
||||||
implode(',', array_merge($this->group->AllChildren()->column('ID'), array($this->group->ID)))
|
implode(',', $groupIDs)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user