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 6de039c + 80abea9 commit 1fb59a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tine20/Addressbook/Controller/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public function get($_id, $_containerId = NULL, $_getRelatedData = TRUE, $_getDe
if ($_id) {
$listController = Addressbook_Controller_List::getInstance();
$groups = $listController->getMemberships($_id);
$contact->groups = $listController->search(Tinebase_Model_Filter_FilterGroup::getFilterForModel(Addressbook_Model_List::class, [
// we remove the list members, so we can do the search on the backend, its way more efficient
$contact->groups = $listController->getBackend()->search(Tinebase_Model_Filter_FilterGroup::getFilterForModel(Addressbook_Model_List::class, [
['field' => 'id', 'operator' => 'in', 'value' => $groups]
]));
$contact->groups->members = null;
Expand Down
2 changes: 1 addition & 1 deletion tine20/Addressbook/Controller/List.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function search(Tinebase_Model_Filter_FilterGroup $_filter = NULL, Tineba
{
$result = parent::search($_filter, $_pagination, $_getRelations, $_onlyIds, $_action);

if ($_onlyIds !== true) {
if ($result instanceof Tinebase_Record_RecordSet) {
$this->_removeHiddenListMembers($result);
}

Expand Down

0 comments on commit 1fb59a7

Please sign in to comment.