Skip to content
Snippets Groups Projects
Unverified Commit b82f26d0 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #18776 from seamuslee001/dev_core_2125

#2125 Ensure that the id that is used in the field is the gro…
parents 953fb16d c8f5cf34
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,8 @@ class CRM_Contact_Form_Edit_TagsAndGroups {
$attributes['skiplabel'] = TRUE;
$elements = [];
$groupsOptions = [];
foreach ($groups as $id => $group) {
foreach ($groups as $group) {
$id = $group['id'];
// make sure that this group has public visibility
if ($visibility &&
$group['visibility'] == 'User and User Admin Only'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment