Verified Commit 418f1346 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #17113 TIME 0:10 Improve control in user redirection

parent b8b1337d
......@@ -500,7 +500,7 @@ class ListInstanceController
if ($listInstance['item_type'] == 'user_id') {
$user = UserModel::getByLogin(['login' => $listInstance['item_id'], 'select' => ['id'], 'noDeleted' => true]);
$listInstance['item_id'] = $user['id'] ?? null;
} else {
} elseif ($listInstance['item_type'] == 'user') {
$user = UserModel::getById(['id' => $listInstance['item_id'], 'select' => ['id'], 'noDeleted' => true]);
}
$listInstance['item_type'] = 'user_id';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment