From c02f23e63f471a4d8cc109a17fa913cdd42aa399 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 7 Jan 2016 12:35:52 +0100 Subject: [PATCH] Return Profile objects from getGroups in GroupdirectoryAction --- plugins/Directory/actions/groupdirectory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Directory/actions/groupdirectory.php b/plugins/Directory/actions/groupdirectory.php index 32e5ce50b4..124ccffe75 100644 --- a/plugins/Directory/actions/groupdirectory.php +++ b/plugins/Directory/actions/groupdirectory.php @@ -323,12 +323,14 @@ class GroupdirectoryAction extends ManagedAction $offset = ($this->page-1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; + $group->selectAdd(); + $group->selectAdd('profile_id'); $group->orderBy($order); $group->limit($offset, $limit); $group->find(); - return $group; + return Profile::multiGet('id', $group->fetchAll('profile_id')); } /** -- 2.39.5