From c2df5d66d79078c7fc222bc718b1b0952027969d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 29 Nov 2021 07:06:41 -0500 Subject: [PATCH] Use user-specific id to fetch the list of group appartenance in Module\Contact\Profile --- src/Module/Contact/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Contact/Profile.php b/src/Module/Contact/Profile.php index e58c329f2..fb67eb04c 100644 --- a/src/Module/Contact/Profile.php +++ b/src/Module/Contact/Profile.php @@ -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;