From cca81cba244163b7d7eb5bf43fc23ea56071c3b5 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 13 Jan 2017 07:37:40 +1100 Subject: [PATCH] CRM-19831 Fix the loading of child groups --- CRM/Contact/BAO/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index a238a16dd1..fe781a5cc3 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -1155,7 +1155,7 @@ WHERE id IN $groupIdString // Changing to a for loop execustion takes around 0.02 seconds (20 ms). if (isset($tree[$group['id']]) && is_array($tree[$group['id']])) { for ($i = 0; $i < count($tree[$group['id']]); $i++) { - self::buildGroupHierarchy($hierarchy, $tree[$group['id'][$i]], $tree, $titleOnly, $spacer, $level + 1); + self::buildGroupHierarchy($hierarchy, $tree[$group['id']][$i], $tree, $titleOnly, $spacer, $level + 1); } } } -- 2.25.1