CRM-14503 patch fixes grouphierarchy error
authorTyrell Cook <tyrell@aghstrategies.com>
Tue, 29 Apr 2014 17:06:51 +0000 (13:06 -0400)
committerTyrell Cook <tyrell@aghstrategies.com>
Tue, 29 Apr 2014 17:06:51 +0000 (13:06 -0400)
CRM/Contact/BAO/Group.php

index 52e860efdc528f4c21d20b5369b24b72ccaea706..7a8d6adee4a4eb53f2ac32981f1e9b4494b2babd 100644 (file)
@@ -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();