Skip to content
Snippets Groups Projects
Commit a18b6202 authored by Markus Guenther's avatar Markus Guenther
Browse files

[BUGFIX] Fix an issue with the recipient fetching

The gitlab php framework has been changed so that the users api did not fetch all
users.
parent d99c87b1
No related branches found
No related tags found
No related merge requests found
......@@ -223,8 +223,14 @@ class GeneralUtility {
try {
/** @var Users $users */
$users = $this->client->api('users');
/** @var array $userData */
$userData = $users->all();
/**
* Since commit 039883d the gitlab api php framework
* uses pagination. And there is no flag to fetch all. So
* we first use a high value to fetch "all".
*
* @var array $userData
*/
$userData = $users->all(NULL, 1, 9999);
} catch (RuntimeException $e) {
error_log(sprintf('Unable to get user data', $e->getMessage()));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment