mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG FIX: column names quoted properly
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100691 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9ebabb1785
commit
37d915bb40
@ -38,7 +38,7 @@ class Group extends DataObject {
|
|||||||
function getAllChildren() {
|
function getAllChildren() {
|
||||||
$doSet = new DataObjectSet();
|
$doSet = new DataObjectSet();
|
||||||
|
|
||||||
if ($children = DataObject::get('Group', 'ParentID = '.$this->ID)) {
|
if ($children = DataObject::get('Group', '"ParentID" = '.$this->ID)) {
|
||||||
foreach($children as $child) {
|
foreach($children as $child) {
|
||||||
$doSet->push($child);
|
$doSet->push($child);
|
||||||
$doSet->merge($child->getAllChildren());
|
$doSet->merge($child->getAllChildren());
|
||||||
|
Loading…
Reference in New Issue
Block a user