Skip to content
Snippets Groups Projects
Commit c8f5cf34 authored by Seamus Lee's avatar Seamus Lee
Browse files

#2125 Ensure that the id that is used in the field is the group id not...

#2125 Ensure that the id that is used in the field is the group id not the id of array key as that has changed from being a keyed array to a 2D array
parent 953fb16d
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