Skip to content

Commit

Permalink
Merge pull request #18776 from seamuslee001/dev_core_2125
Browse files Browse the repository at this point in the history
dev/core#2125 Ensure that the id that is used in the field is the gro…
  • Loading branch information
eileenmcnaughton authored Oct 15, 2020
2 parents 953fb16 + c8f5cf3 commit b82f26d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contact/Form/Edit/TagsAndGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public static function buildQuickForm(
$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'
Expand Down

0 comments on commit b82f26d

Please sign in to comment.