Merge pull request #11045 from MrPetovan/bug/11029-contact-group

Use user-specific id to fetch the list of group appartenance in Module\Contact\Profile
This commit is contained in:
Michael Vogel 2021-11-30 06:17:56 +01:00 committed by GitHub
commit 3ff59cfdc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ class Profile extends BaseModule
$groups_widget = '';
if (!in_array($localRelationship->rel, [Contact::NOTHING, Contact::SELF])) {
$groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $contact['id']);
$groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $data['user']);
}
$this->page['aside'] .= $vcard_widget . $groups_widget;