Skip to content

Commit

Permalink
Merge branch '2023.11' into 2024.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Feb 26, 2025
2 parents 6ba7828 + eff6edf commit 6de039c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Addressbook/Controller/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ public function get($_id, $_containerId = NULL, $_getRelatedData = TRUE, $_getDe
{
$contact = parent::get($_id, $_containerId, $_getRelatedData, $_getDeleted, $_aclProtect);

if($_id) {
if ($_id) {
$listController = Addressbook_Controller_List::getInstance();
$groups = $listController->getMemberships($_id);
$contact->groups = $listController->getBackend()->getMultiple($groups);
$contact->groups = $listController->search(Tinebase_Model_Filter_FilterGroup::getFilterForModel(Addressbook_Model_List::class, [
['field' => 'id', 'operator' => 'in', 'value' => $groups]
]));
$contact->groups->members = null;
}

Expand Down

0 comments on commit 6de039c

Please sign in to comment.