Merge pull request #18907 from alifrumin/2139
[civicrm-core.git] / CRM / Contact / Form / GroupContact.php
index b2e326e960f7804911438c660f7011240a1378e1..79d4c29c1d62152fe31b0f2528d47a1f0662253b 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form {
         if ($onlyPublicGroups && $group['visibility'] == 'User and User Admin Only') {
           continue;
         }
-        $allGroups[$id] = $group;
+        $allGroups[$group['id']] = $group;
       }
     }
     else {