From 52e14494bd2ed1a1f8bcde105b3d85caa19ede8c Mon Sep 17 00:00:00 2001 From: Tyrell Cook Date: Tue, 29 Apr 2014 13:06:51 -0400 Subject: [PATCH] CRM-14503 patch fixes grouphierarchy error --- CRM/Contact/BAO/Group.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 52e860efdc..7a8d6adee4 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -1017,7 +1017,9 @@ WHERE id IN $groupIdString //list. This maintains the hierarchical ordering of the tags. $roots = array_merge($new_roots, $roots); } - + foreach($rows as $value) { + $groups[$value['id']] = array($value['prefix'], $value['title']); + } // Prefix titles with the calcuated spacing to give the visual // appearance of ordering when transformed into HTML in the form layer. Add description and visibility. $groupsReturn = array(); -- 2.25.1