Skip to content
Snippets Groups Projects
Commit 816242fd authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #15729 TIME 0:15 fix added substitutes list to user info

parent de42c7d5
No related branches found
No related tags found
No related merge requests found
...@@ -686,6 +686,9 @@ class UserController ...@@ -686,6 +686,9 @@ class UserController
if (!empty($user['substitute'])) { if (!empty($user['substitute'])) {
$user['substituteUser'] = UserModel::getLabelledUserById(['id' => $user['substitute']]); $user['substituteUser'] = UserModel::getLabelledUserById(['id' => $user['substitute']]);
} }
$substitutes = UserModel::get(['select' => ['id'], 'where' => ['substitute = ? '], 'data' => [$GLOBALS['id']]]);
$user['substitutes'] = array_column($substitutes, 'id');
} }
return $user; return $user;
......
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