Return Profile objects from getGroups in GroupdirectoryAction

This commit is contained in:
Mikael Nordfeldth 2016-01-07 12:35:52 +01:00
parent 5d4b1d0b88
commit c02f23e63f

View File

@ -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'));
}
/**