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:
commit
3ff59cfdc3
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ class Profile extends BaseModule
|
||||||
$groups_widget = '';
|
$groups_widget = '';
|
||||||
|
|
||||||
if (!in_array($localRelationship->rel, [Contact::NOTHING, Contact::SELF])) {
|
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;
|
$this->page['aside'] .= $vcard_widget . $groups_widget;
|
||||||
|
|
Loading…
Reference in a new issue